Windows AutoPilot - Hardware Hash

%3CLINGO-SUB%20id%3D%22lingo-sub-1086872%22%20slang%3D%22en-US%22%3EWindows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086872%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20running%20a%20PowerShell%20script%20to%20generate%20hardware%20hashes%20in%20order%20to%20enroll%20devices%20into%20Intune%20Autopilot.%20I%20followed%20the%20instructions%20from%20the%20official%20MS%20site%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fdeployment%2Fwindows-autopilot%2Fadd-devices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fdeployment%2Fwindows-autopilot%2Fadd-devices.%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20below%20command%20runs%20successfully%20but%20the%20only%20problem%20is%20that%20when%20trying%20to%20upload%20to%20Intune%20I%20get%20an%20error%20that%20the%20format%20is%20incorrect.%20I%20then%20have%20to%20manually%20update%20the%20CSV%20to%20separate%20each%20comma%20and%20upload.%20We%20have%20hundreds%20of%20devices%20and%2C%20needless%20to%20say%2C%20it's%20incredibly%20tedious%20to%20do%20this%20for%20every%20single%20one.%20I%20can't%20find%20a%20forum%20that%20describes%20a%20way%20to%20edit%20the%20script%20to%20do%20this%20for%20me.%20Does%20anyone%20have%20an%20idea%20of%20how%20to%20do%20this%2C%20if%20even%20possible%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emd%20c%3A%5C%5CHWID%3C%2FP%3E%3CP%20class%3D%22%22%3ESet-Location%20c%3A%5C%5CHWID%3C%2FP%3E%3CP%3ESet-ExecutionPolicy%20-Scope%20Process%20-ExecutionPolicy%20Unrestricted%3C%2FP%3E%3CP%3EInstall-Script%20-Name%20Get-WindowsAutoPilotInfo%3C%2FP%3E%3CP%20class%3D%22%22%3EGet-WindowsAutoPilotInfo.ps1%20-OutputFile%20AutoPilotHWID.csv%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EKind%20regards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1086872%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAutopilot%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindows%2010%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1087100%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1087100%22%20slang%3D%22en-US%22%3EPlease%20read%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.scconfigmgr.com%2F2019%2F06%2F04%2Fimport-windows-autopilot-device-identity-using-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.scconfigmgr.com%2F2019%2F06%2F04%2Fimport-windows-autopilot-device-identity-using-powershell%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1088280%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1088280%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F504993%22%20target%3D%22_blank%22%3E%40Ali1900%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20should%20not%20have%20to%20edit%20AutoPilotHWID.csv%20before%20upload%20to%20Intune.%3C%2FP%3E%0A%3CP%3ECan%20you%20share%20the%20format%20of%20the%20file%20created%3F%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EKind%20Regards%3C%2FP%3E%0A%3CP%3EPer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1090765%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1090765%22%20slang%3D%22en-US%22%3EHi%20Ali900%2C%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20you%20tried%20to%20create%20new%20Deployment%20Profile%20and%20hit%20Yes%20on%20Convert%20all%20targeted%20the%20devices%20to%20AutoPilot.%20Please%20refer%20to%20the%20blog%20below%2C%20you%20don%E2%80%99t%20have%20to%20import%20anything%20manually.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.google.com%2Famp%2Fs%2Fsecureinfra.blog%2F2019%2F10%2F31%2Fconvert-all-targeted-devices-to-autopilot%2Famp%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.google.com%2Famp%2Fs%2Fsecureinfra.blog%2F2019%2F10%2F31%2Fconvert-all-targeted-devices-to-autopilot%2Famp%2F%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092240%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092240%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F322909%22%20target%3D%22_blank%22%3E%40perlarsen1975%3C%2FA%3E%26nbsp%3B-%20Thanks%20for%20your%20reply%2C%20happy%20to%20share%20file%20as%20nothing%20confidential.%20Please%20see%20attached.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092244%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092244%22%20slang%3D%22en-US%22%3EI'll%20check%20it%20out%2C%20thank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092248%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20AutoPilot%20-%20Hardware%20Hash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092248%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103721%22%20target%3D%22_blank%22%3E%40Abinash%20RGS%20ICT%20-%20Hotmail%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThank%20you%2C%20i'll%20check%20it%20out!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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
Highlighted

@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

Highlighted
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/a...
Highlighted
I'll check it out, thank you!
Highlighted

@Abinash RGS ICT - Hotmail 


Thank you, i'll check it out!