Unable to retreive device hardware hash >> windows autopilot csv

~OSD~ 2,126 Reputation points
2022-04-28T18:37:38.09+00:00

Hi,
Have been collecting hardware hash from years without issue.
Today encounter this issue that hardware hash can not be collected, anyone has ever experienced this?

197366-image.png

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,617 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,754 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,166 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 44,776 Reputation points
    2022-04-28T20:09:33.057+00:00

    You have the source code for that script. If not, it's here: Get-WindowsAutoPilotInfo.ps1

    Line 211 looks like this:

    $devDetail = (Get-CimInstance -CimSession $session -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND ParentID='./DevDetail'")
    

    Assuming you're running it using to get data from "localhost", the CIM session is created like this (on line 199):

    $session = New-CimSession
    
    1 person found this answer helpful.

  2. Limitless Technology 39,351 Reputation points
    2022-05-03T07:41:06.103+00:00

    Hi there,

    There are many ways to correct hardware harsh.The following methods are available to harvest a hardware hash from existing devices:

    -Using Microsoft Endpoint Configuration Manager
    -Using Windows PowerShell
    -During OOBE by using the Diagnostics Page (Windows 11 only)
    -From the Desktop using Settings > Accounts

    You can try an alternate script from the below thread and see if that helps.
    How to get hardware hash by all version of windows which support PowerShell https://answers.microsoft.com/en-us/windows/forum/all/how-to-get-hardware-hash-by-all-version-of-windows/14355e5b-cdab-4456-b376-ddf616220e4c


    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.