Skip to main content

How to Directly Upload Hardware Hashes to an MS Intune MDM Service Without USB

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:

  1. Press `Shift+F10` to open a command prompt
  2. Type `powershell.exe` to launch PowerShell
  3. Continue to the PowerShell commands section below

Powershell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo -Force
Get-WindowsAutopilotInfo -Online

What Happens Next?

  1. You'll be prompted to install NuGet from PSGallery - accept this installation
  2. When you run `Get-WindowsAutopilotInfo -Online`, you'll see a Microsoft Entra ID sign-in window
  3. Sign in with an account that has Intune Administrator privileges
  4. On your first run, you'll need to approve the app registration permissions
  5. 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!