Solved Get AutoPilotHash in WinPE without network connection


kingrose

New member
Local time
10:38 PM
Posts
6
OS
11
Dear Experts,

I want to create a USB stick which automatically reads the hardware hash and serial number and writes that to a CSV.
Like in the following article: WinPE: Adding Windows PowerShell support to Windows PE

The WinPE works perfectly so far and I have PowerShell mounted in it as well but I'm facing the error messages:
1.webp
2.webp
3.webp
Can you please help to fix this or is it not possible to do this in Windows PE and must do it in a Full Windows environment?
Thank you in advance.
 

My Computer My Computer

At a glance

11
OS
11
The MDM Bridge WMI Provider is implemented in DMWmiBridgeProv.dll. Does PE have that DLL (I can't check at the moment)?

Also, the namespace is root\cimv2\mdm\dmmap. You seem to be missing an m in the last part of the path, in at least one of your error messages.
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2
OS
Windows 11 Enterprise 25H2
The MDM Bridge WMI Provider is implemented in DMWmiBridgeProv.dll. Does PE have that DLL (I can't check at the moment)?

Also, the namespace is root\cimv2\mdm\dmmap. You seem to be missing an m in the last part of the path, in at least one of your error messages.
I have copied both file DMWmiBridgeProv.dll and .mof to \wbem

robocopy "C:\Temp" "C:\WinPE_Autopilot\mount\Windows\System32\wbem" DMWmiBridgeProv.dll /COPYALL /R:3 /W:5
robocopy "C:\Temp" "C:\WinPE_Autopilot\mount\Windows\System32\wbem" DMWmiBridgeProv.mof /COPYALL /R:3 /W:5

I also tried with both dmmap and dmap, please see the screenshot below:

4.webp
 

My Computer My Computer

At a glance

11
OS
11

My Computer My Computer

At a glance

11
OS
11
OA3Tool.exe is from the Windows ADK. You copy it from:
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Licensing\OA30\oa3tool.exe
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
OA3Tool.exe is from the Windows ADK. You copy it from:
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Licensing\OA30\oa3tool.exe
After running the command: oa3tool.exe /Report /ConfigFile=.\OA3.cfg /NoKeyCheck
How can save the hardware hash to csv in USB?
 

My Computer My Computer

At a glance

11
OS
11
Did you download the files from mmeierm's Autopilot project? The PS script takes "-OutputFile file.csv" as an argument.
Screenshot 2025-08-18 121308.webp
Yes, I downloaded all the files and copied to my USB D:\Autopilot as the screenshort
I just run the Create_4kHash_using_OA3_Tool.ps1 file from my WinPE? Am I correct?
 

My Computer My Computer

At a glance

11
OS
11
Code:
powershell -ep bypass -f \path\Create_4kHash_using_OA3_Tool.ps1 -Outputfile \path\hash.csv
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

Latest Support Threads

Back
Top Bottom