Forum Discussion

Ali1900's avatar
Ali1900
Copper Contributor
Jan 03, 2020

Windows AutoPilot - Hardware Hash

Hi all,

 

I'm running a PowerShell script to generate hardware hashes in order to enroll devices into Intune Autopilot. I followed the instructions from the official MS site, https://docs.microsoft.com/en-us/windows/deployment/windows-autopilot/add-devices

 

The below command runs successfully but the only problem is that when trying to upload to Intune I get an error that the format is incorrect. I then have to manually update the CSV to separate each comma and upload. We have hundreds of devices and, needless to say, it's incredibly tedious to do this for every single one. I can't find a forum that describes a way to edit the script to do this for me. Does anyone have an idea of how to do this, if even possible?  

 

md c:\\HWID

Set-Location c:\\HWID

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted

Install-Script -Name Get-WindowsAutoPilotInfo

Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv

 

Any help would be appreciated.

 

Kind regards,

5 Replies

  • Moe_Kinani's avatar
    Moe_Kinani
    Bronze Contributor
    Hi Ali900,

    Have you tried to create new Deployment Profile and hit Yes on Convert all targeted the devices to AutoPilot. Please refer to the blog below, you don’t have to import anything manually.

    https://www.google.com/amp/s/secureinfra.blog/2019/10/31/convert-all-targeted-devices-to-autopilot/amp/
  • Ali1900 

    You should not have to edit AutoPilotHWID.csv before upload to Intune.

    Can you share the format of the file created??

     

    Kind Regards

    Per

Resources