Import-AutopilotDevice

1.1.20260914.3

Reads the public runtime configuration from an Autopilot Import application, validates device data from a CSV file or collects the local device hardware hash, and submits each device directly to the secured REST API.
The script imports without a confirmation prompt and polls every 10 seconds until Intune reports the import and Entra device attribute processing as comp
Reads the public runtime configuration from an Autopilot Import application, validates device data from a CSV file or collects the local device hardware hash, and submits each device directly to the secured REST API.
The script imports without a confirmation prompt and polls every 10 seconds until Intune reports the import and Entra device attribute processing as complete or the import reaches an error state. Use -Verbose for additional configuration, authentication, request, and polling details.

The script uses Az.Accounts only to acquire the signed-in user's API token. If the required commands are unavailable, it installs Az.Accounts from the PowerShell Gallery for the current user. It does not load or require AutopilotImport.Client.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Import-AutopilotDevice

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • andreas.lucas@microsoft.com

Tags

WindowsAutopilot Intune Entra Azure REST HardwareHash

Functions

Resolve-AutoPilotApplicationUrl Get-AutoPilotRuntimeConfiguration ConvertTo-AutoPilotDeviceRecord Get-AutoPilotCsvDevice Get-LocalAutoPilotDevice Install-AutoPilotAzAccounts ConvertFrom-AutoPilotSecureString Get-AutoPilotAccessToken Get-AutoPilotRestErrorMessage Write-AutoPilotImportStatus

Dependencies

This script has no dependencies.

Release Notes

Standalone REST client with CSV and local hardware hash import, PowerShell 5.1
compatibility, automatic Az.Accounts installation, and status polling.

FileList

Version History

Version Downloads Last updated
1.1.20260914.3 (current version) 6 9/14/2026