How to get the Hash ID for device which is already added to intune.

%3CLINGO-SUB%20id%3D%22lingo-sub-2566541%22%20slang%3D%22en-US%22%3EHow%20to%20get%20the%20Hash%20ID%20for%20device%20which%20is%20already%20added%20to%20intune.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2566541%22%20slang%3D%22en-US%22%3E%3CP%3EHI%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20device%20in%20my%20tenant%2C%20for%20which%20i%20need%20to%20find%20the%20Hash%20id.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2566541%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2567167%22%20slang%3D%22de-DE%22%3ESubject%3A%20How%20to%20get%20the%20Hash%20ID%20for%20device%20which%20is%20already%20added%20to%20intune.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567167%22%20slang%3D%22de-DE%22%3EYou%20can%20download%20the%20device%20hash%20in%20the%20Mem%20portal%20under%20devices%20%26gt%3B%20enroll%20devices%20%26gt%3B%20devices.%20There%20you%20can%20select%20the%20effected%20device%20and%20click%20the%20Export%20button.%3CBR%20%2F%3E%3CBR%20%2F%3EAlternatively%20you%20can%20get%20the%20device%20hash%20directly%20on%20the%20device%20with%20the%20following%20command%3A%20%3CBR%20%2F%3E%20Get-WindowsAutoPilotInfo.ps1%20-OutputFile%20AutoPilotHWID.csv%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2567734%22%20slang%3D%22en-US%22%3EBetreff%3A%20How%20to%20get%20the%20Hash%20ID%20for%20device%20which%20is%20already%20added%20to%20intune.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567734%22%20slang%3D%22en-US%22%3EExporting%20from%20Endpoint%20Manager%20doesn't%20include%20the%20actual%20hardware%20hash%20in%20the%20exported%20CSV%20file.%20There%20currently%20does%20not%20seem%20to%20be%20a%20way%20to%20export%20the%20hardware%20hash%20of%20an%20Autopilot%20device%20directly%20from%20Endpoint%20Manager.%3CBR%20%2F%3E%3CBR%20%2F%3EUsing%20the%20script%20locally%20on%20the%20device%20will%20of%20course%20work%20and%20retrieve%20the%20HW%20hash.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2568884%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20Hash%20ID%20for%20device%20which%20is%20already%20added%20to%20intune.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2568884%22%20slang%3D%22en-US%22%3EYou%20could%20create%20a%20pro%20active%20remediation...%20the%20only%20bad%20about%20pro%20active%20remediaitons%20that%20its%20limited%20to%202046%20characters.%20So...%3CBR%20%2F%3E%3CBR%20%2F%3E-Create%20some%20pro%20active%20rem%20which%20exports%20the%20hash%3CBR%20%2F%3E-store%20the%20information%20in%20a%20sharepoint%20site%20like%20damien%20did%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.systanddeploy.com%2F2021%2F02%2Fintune-troubleshooting-collect-remotely.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.systanddeploy.com%2F2021%2F02%2Fintune-troubleshooting-collect-remotely.html%3C%2FA%3E%3CBR%20%2F%3E-Make%20sure%20you%20clean%20up%20the%20intunem%20gt%20log%20like%20i%20showed%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcall4cloud.nl%2F2021%2F05%2Fthe-laps-reloaded%2F%23third-part%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcall4cloud.nl%2F2021%2F05%2Fthe-laps-reloaded%2F%23third-part%3C%2FA%3E%3C%2FLINGO-BODY%3E
Visitor

HI, 

 

I have a device in my tenant, for which i need to find the Hash id. 

4 Replies

You can try to download the device hash in the Mem portal under devices > enroll devices > devices. There you can select the effected device and click the Export button.

Alternatively you can get the device hash directly on the device with the following command:
Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv

Exporting from Endpoint Manager doesn't include the actual hardware hash in the exported CSV file. There currently does not seem to be a way to export the hardware hash of an Autopilot device directly from Endpoint Manager.

Using the script locally on the device will of course work and retrieve the HW hash.
You could create a pro active remediation... the only bad about pro active remediaitons that its limited to 2046 characters. So...

-Create some pro active rem which exports the hash
-store the information in a sharepoint site like damien did: https://www.systanddeploy.com/2021/02/intune-troubleshooting-collect-remotely.html
-Make sure you clean up the intunem gt log like i showed
https://call4cloud.nl/2021/05/the-laps-reloaded/#third-part

You can also use the following command to only get the device hash to send it to a storage. Therefor you don't need install the Get-AutoPilotInfo script.

(Get-CimInstance -ClassName MDM_DevDetail_Ext01 -Namespace root\cimv2\mdm\dmmap).DeviceHardwareData