Autopilot / AD Join

From Windows PowerShell ISE Admin mode

Run the first line in the powershell window to allow scripts to run , Select all

 

Set-ExecutionPolicy Unrestricted

Type the following lines in a new script. The path C:\HWID can be changed to your likening

New-Item -Type Directory -Path „C:\HWID“

Set-Location -Path „C:\HWID“

$env:Path += „;C:\Program Files\WindowsPowerShell\Scripts“

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned

Install-Script -Name Get-WindowsAutoPilotInfo

Get-WindowsAutoPilotInfo -OutputFile AutoPilotHWID.csv

 

Retrieve the file AutopilotHWID.CSV and upload to Intune endpoint.mictrosoft.com > Devices > Enroll Devices > Windows Autopilot Deployment Program > Devices > Import . Allow 30 minutes for the device to be ready.