- Overview
- What is Windows Autopilot?
- What does Get-WindowsAutopilotInfo do?
- Instructions
- Using Get-WindowsAutopilotInfo.ps1
- Get-WindowsAutopilotInfo Parameters
This guide covers using the Get-WindowsAutopilotInfo PowerShell script to gather device information and add it to Windows Autopilot for deployment.
Windows Autopilot is a service that allows you to automatically configure and manage new Windows devices. Using Autopilot, you can register new devices, join them to Azure Active Directory and Intune, apply policies and settings, install apps, and more.
Get-WindowsAutopilotInfo is a PowerShell script that collects information about a Windows device like the hardware hash, model, etc. It can then add that data to the Windows Autopilot deployment service. This allows the device to be automatically configured when first booted up.
Follow these steps to add a new Windows device to Autopilot using Get-WindowsAutopilotInfo:
- Install the Get-WindowsAutopilotInfo script:
Install-Script -Name Get-WindowsAutopilotInfo
- Run the script with parameters to gather info and add to Autopilot:
Get-WindowsAutopilotInfo.ps1 -Online -AddToGroup "Windows Autopilot Devices" -GroupTag "MyDevices"
###💻Using Get-WindowsAutopilotInfo.ps1
-
Open a Windows PowerShell prompt with administrative rights.
-
Install the script:
Install-script -name Get-WindowsAutoPilotInfo
-
Set execution policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
-
Run
Get-WindowsAutopilotInfo.ps1
with desired parameters -
Sign into your Azure Global Admin account to approve requests
-Name
- Computer names-OutputFile
- Output CSV file-Append
- Append to output file-Credential
- Remote computer credentials-Partner
- Use Partner Center schema-GroupTag
- Tag for Intune upload-AssignedUser
- Assign user to device-Online
- Add to Autopilot via Intune-AssignedComputerName
- Specify computer name-AddToGroup
- Add device to Azure AD group-Assign
- Wait for profile assignment-Reboot
- Restart device after assignment