Collecting hardware hash for Autopilot using Automox
When aiming to set up all of your Windows devices with the Autopilot application, the biggest task is getting the hardware hash for these devices. This can be done using Automox. Specifically, this is done through PowerShell. While we do not have a scripted method for how to accomplish this, we do provide all of the resources necessary to help build your script.
Let's start with the official Microsoft documentation:
https://learn.microsoft.com/en-us/mem/autopilot/add-devices
Some scripts and information to get the hardware hash for your devices
For an explanation, refer to:
How to Obtain a Windows 10 Hardware Hash Manually
Actual scripts
- (v1.0) https://www.powershellgallery.com/packages/Get-CMAutopilotHashes/1.0/Content/Get-CMAutopilotHashes.ps1
- (v1.3) https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/1.3/Content/Get-WindowsAutoPilotInfo.ps1
A synopsis of each script
- (v1.0) "This script will build a list of serial numbers and hardware hashes pulled from ConfigMgr inventory and write them to a CSV file so they can be imported into Intune to define the devices to Windows Autopilot."
- (v1.3) "Retrieves the Windows AutoPilot deployment details from one or more computers"
Things to note about Automox
- To exactly replicate what Automox is doing, run the script in a PowerShell ISE (x86) session with elevated permissions.
- Automox runs everything as the NT AUTHORITY/SYSTEM user
- Automox operates on 32-bit architecture by default (hence the (x86))
The most important thing to note is the official Microsoft documentation, but the scripts listed in this article illustrate real-world examples for obtaining the hardware hash.
Comments
0 comments
Article is closed for comments.