Download all the contents of this repository and save them to a USB drive. To download it, click the green "Code" button in the top-right corner of hiof/hwid, then click "Download ZIP." Extract the contents of the ZIP archive to the USB drive.
Note
In the examples here, "D:" is the drive letter for the USB drive. This may vary if you have multiple USB storage devices or partitions attached.
-
Start the device you want to fetch the HWID from.
-
When the Windows Setup screen appears, press the key combination Fn + Shift + F10 to open a Command Prompt window.
-
Enter the following command:
powershell.exe -ExecutionPolicy Bypass -File "D:\Get-HWID.ps1"
-
Wait until "HWID saved!" appears in the console.
-
Shut down the PC.
shutdown /s /t 0
The HWID file will be saved as serialnumber.csv in a folder named "HWID" on the USB drive.
-
Open a Command Prompt window as an administrator.
-
Enter the following command:
powershell.exe -ExecutionPolicy Bypass -File "D:\Get-HWID.ps1"
-
Wait until "HWID saved!" appears in the console.
-
Eject the USB drive.
To import multiple HWIDs into Intune, you will need to combine the CSV files before importing them.
-
Open a "Run" window (Win+R).
-
Enter the following command:
powershell.exe -ExecutionPolicy Bypass -File "D:\HWID-merger.ps1"
-
Enter the path to the HWID folder on your USB drive when prompted.
-
Wait until "HWIDs combined!" appears in the console.
-
Upload the "Autopilot-HWID.csv" file in the "HWID" folder on the USB drive to Intune.