Jan 03 2020 01:39 AM
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,
Jan 03 2020 05:10 AM
Jan 04 2020 01:32 AM
You should not have to edit AutoPilotHWID.csv before upload to Intune.
Can you share the format of the file created??
Kind Regards
Per
Jan 04 2020 06:56 AM
Jan 06 2020 05:12 AM
Thank you, i'll check it out!