Need to register a device with Microsoft Intune? Whether you're setting up a new device or working with an existing one, here's how to upload the hardware hash directly to Intune
For New Devices During Windows Setup (OOBE)
During the initial setup of Windows when you reach the sign-in prompt, you can quickly register your device:
- Press `Shift+F10` to open a command prompt
- Type `powershell.exe` to launch PowerShell
- Continue to the PowerShell commands section below
What Happens Next?
- You'll be prompted to install NuGet from PSGallery - accept this installation
- When you run `Get-WindowsAutopilotInfo -Online`, you'll see a Microsoft Entra ID sign-in window
- Sign in with an account that has Intune Administrator privileges
- On your first run, you'll need to approve the app registration permissions
- The hardware hash will upload automatically
Important Notes
- For new devices still in OOBE: Restart your device after the upload. This will trigger the Windows Autopilot profile and start the provisioning process
- Always verify that the upload was successful by checking your registered Windows Autopilot devices in Intune
- Make sure you're using an account with sufficient administrative privileges in Intune
And you're all set!