How to add Windows 10 devices to Windows Autopilot even faster

In July, 2018, I wrote this blog about how to setup Windows Autopilot and add existing devices the quickest way. After publishing this blog the Get-WindowsAutoPilotInfo script has been updated several times by the author Michael Niehaus. New functionalities have been added to the scripts. Therefore Windows 10 devices can be added to Windows Autopilot even faster then described in my old blog.

Let’s see how you can add Windows 10 devices even faster to Windows Autopilot.

Turn on a new device. Connect to your WiFi network (if no LAN cable is connected)  and after that press the SHIFT + F10 keyboard combination. This will open a command prompt.

Run Powershell

Run the following commands for creating a local “scripts” folder and downloading the Get-WindowsAutoPilotInfo script.

cd\
md scripts
cd scripts
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Save-Script -Name Get-WindowsAutoPilotInfo -Path c:\scripts

When asked to install and import the NuGet provider, type Y and press Enter

Optionally you can check if the script is downloaded in the folder by running the dir command.

Now I will run the script with the following (optional) parameters:

AssignedUser : If you want to assign this device directly to a user you can add this parameter followed by the UPN of the user (optional)

AssignedComputerName : To give this device a fixed name, for example the registered name in your CMDB. The device will keep this name, even after a factory reset. (optional)

Online : To directly add this device to the Autopilot services without creating an output file that needs to be imported manually

.\Get-WindowsAutoPilotInfo.ps1 -AssignedUser "User UPN Name" – AssignedComputerName "Fixed device name" -Online

In my case it will be the following command;

.\Get-WindowsAutoPilotInfo.ps1 -AssignedUser robin@futureworkplace.it – AssignedComputerName FUTUREWP-03 -Online

Sign in with your Azure Global Administrator account.

Scroll down

Select Consent on behalf of your organization (will appear only the first time) and click Accept

After authentication the devices information will be collected and imported to the Windows Autopilot services directly.

After 2 to 3 minutes (average) the devices is synced with the Windows Autopilot services.

The devices is now visible in the Microsoft Endpoint Manager admin center. As you can see it is already assigned to the user and have the fixed Device Name configured.

When the device is rebooted you see that Windows Autopilot is enabled. And since this device is assigned to an user, the user only has to enter his / her password.

11 comments

About Robin Hobo

Robin Hobo

I work as a Senior Solution Architect with focus on the Modern Workspace. I am specialized in Azure Virtual Desktop (AVD), Windows 365 and Microsoft EM+S (including Microsoft Endpoint Manager - Microsoft Intune).

For my full bio, check the About Me page. You can also join me on the following social networks:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close