This guide will walk you through the steps to manually register a Windows device in Windows Autopilot using PowerShell:
- Open an administrative PowerShell session. If you're on a new PC going through the Out Of Box Experience (OOBE), press SHIFT+F10 to open an administrative command prompt. From here, type
PowerShell
and press enter to initiate a PowerShell session. - Ensure the device has an internet connection. If you're using a laptop, you can continue with the OOBE setup until you're connected to Wi-Fi. After establishing the connection, stop and revert to your PowerShell session to follow the rest of the steps.
- Use the command
Install-Script Get-WindowsAutoPilotInfo
and answer 'Y' to all the confirmations. - Next, set the execution policy to unrestricted to avoid errors when using the script. Enter the command
Set-Executionpolicy Unrestricted
. - Now, you can run the get-windowsautopilotinfo script. If you run the script without any parameters, the hardware hash will display as output. Use the following command:
Get-WindowsAutoPilotInfo.ps1
. - To register the device directly, add the parameter -Online. This parameter instructs the script to register the device directly with the online Autopilot deployment service. During this step, you will be prompted for user authentication. Provide credentials for a user who is authorized to add devices to Autopilot. Use the command:
Get-WindowsAutoPilotInfo.ps1 -Online
.
Note: Always ensure you are running these commands with appropriate administrative permissions to avoid potential issues.
Quelle: Manually register new or existing devices with Autopilot - SMBtotheCloud
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article