Step 1:
To install directly and capture your hardware hash from the local computer, please run the following commands from an elevated Windows PowerShell prompt.
Note: As each line of the PowerShell script gets read, you will be prompted multiple times to accept a download or allow a permission for the script itself to be installed and used.
New-Item -Type Directory -Path “C:\HWID” – Creating a new directory path
Set-Location -Path “C:\HWID” – Setting where we would like the CSV to be placed after creation
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted – Allows any script to be run
Install-Script -Name Get-WindowsAutoPilotInfo – Installs the script
Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv – This is where you will be able to see your new .CSV file in the C:\HWID folder.
Step 2:
After the Output file has been created, you should be able to see it within your C:\HWID Folder.
Note: In my example picture shown below, my path is “C:\Temp\Importing Example for Intune”, please do not get confused with this, your .CSV file should appear in “C:\HWID”.