Sample module to manage AutoPilot devices using the Intune Graph API

Installation Options

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

Install-Module -Name WindowsAutoPilotIntune -RequiredVersion 2.7

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

Install-PSResource -Name WindowsAutoPilotIntune -Version 2.7

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



(c) 2018 Microsoft. All rights reserved.

Package Details


  • Michael Niehaus


Get-AuthToken Connect-AutoPilotIntune Get-AutoPilotDevice Set-AutoPilotDeviceAssignedUser Remove-AutoPilotDevice Get-AutoPilotImportedDevice Add-AutoPilotImportedDevice Remove-AutoPilotImportedDevice Get-AutoPilotProfile Set-AutoPilotProfile Get-AutoPilotOrganization ConvertTo-AutoPilotConfigurationJSON Import-AutoPilotCSV Invoke-AutopilotSync


This module has no dependencies.

Release Notes

Version 2.7: Added support for using GroupTag instead of OrderID for uploading batches of devices
Version 2.6: Added the ability to read the OrderID value from a CSV file; fixed "Waiting for 1 of" message
Version 2.5: Modified ConvertTo-AutopilotConfigurationJSON to set ZtdCorrelationId to the ID of the profile; added Set-AutoPilotDeviceAssignedUser function (thanks to Oliver Kieselbach)
Version 2.4: Modified ConvertTo-AutopilotConfigurationJSON to properly support available AAD user-driven options
Version 2.3: Added new Invoke-AutopilotSync method (equivalent to clicking "Sync" in the Intune console)
Version 2.2: Added pagination support (thanks to Oliver Kieselbach)
Version 2.1: Fixed syntax issue in connect method
Version 2.0: Added cmdlet help (and fixed the mistake of using 1.41 as a verion, since 1.41 is considered > 1.5 because 41 is greater than 5)
Version 1.4: Added functions to delete a device, to list Autopilot profiles, and to convert Autopilot profiles into JSON.
Version 1.3: Fixed module manifest to export functions


Version History

Version Downloads Last updated
5.6 3,081,375 7/7/2023
5.5 104 7/7/2023
5.4 38,326 7/6/2023
5.3 510,779 6/12/2023
5.2 27,544 6/12/2023
5.1 21,807 6/10/2023
5.0 5,711,674 3/24/2021
4.8 380,627 7/19/2020
2.7 (current version) 13,931 5/30/2019
Show less