question

AdamJacks-3196 avatar image
2 Votes"
AdamJacks-3196 asked AEmery-7902 answered

Get-Autopilotinfo.PS1 # Get the hash (if available) errors on Dynabook A40 Win10 pro 21H2

I have 20 Dynabook A40's, 18 of them have retrieved the hash file with no issues, 2 of them when running
$devDetail = (Get-CimInstance -CimSession $session -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND ParentID='./DevDetail'")

I get this error message on the devices ;

Get-CimInstance : A general error occurred that is not covered by a more specific error code.
At D:\Autopilot\Get-WindowsAutoPilotInfo.ps1:209 char:23
... evDetail = (Get-CimInstance -CimSession $session -Namespace root/cimv ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Get-CimInstance], CimException
FullyQualifiedErrorId : MI RESULT 1,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand

The operating system is Windows 10 Pro 21H2, I only get the issue on these 2 devices, any Ideas/advice would be greatly appreciated.

Thank you.



windows-10-generalmem-autopilot
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We encounter the same problem with a HP ProBook 455 G9 and a fully updated (May update) Windows 10 21H2.
Next week we have to hash 500+ devices which are also fully updated, so I hope MS will fix this asap.

Meanwhile I worked around the problem on the HP ProBook by restoring an older image (updated till april), run the PS script to get the hash and restoring back the latest image again.

0 Votes 0 ·

I had the same issue with an HP:

After a format :

1) at Keyboard screen start cmd consol and go to appwiz.cpl / uninstall microsoft updates
2) run eplorer to start Edge to download HP image assistant to update Bios and drivers (not software)
3) restart and after that I could enroll my HP on my tenant


0 Votes 0 ·
RobertFlorek-6011 avatar image
2 Votes"
RobertFlorek-6011 answered RobertFlorek-6011 published

It looks on global problem for Windows 10 registration via Autopilot, after install KB5013942 - 2022-05 Cumulative Update for Windows 10 Version 21H2.
At this moment, only one solution is uninstall this KB via command wusa.exe /uninstall /KB:5013942.
If device is enrolled (registered in Intune) then you can update device.

For Windows 11 problem doesn't exist, even if KB 2022-05 is installed!

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Excellent thank you RobertFlorek, this has resolved my issue, hopefully Microsoft will release an update to resolve this problem soon.

1 Vote 1 ·

Good catch RobertFlorek-6011! With the info you provided I was able to uninstall KB501394, reboot and capture the Hash tag required to register my Windows 10 device into Intune Autopilot. Hopefully Microsoft gets on this ASAP and provides a fix before we see this happening to all of our thousands of Intune deployed Windows 10 devices.

1 Vote 1 ·

Sadly enough, this does not work because it is an essential update which can not be uninstalled.

0 Votes 0 ·

I just performed an uninstall and rebooted afterward when it asked me to. It did not give me any grief about being an essential update.

0 Votes 0 ·

I just tested new KB5014699 2022-06 Cumulative Update for Windows 10 Version 21H2 for x64 on fresh installed system Windows 10 21H2, NO issue so far, script is able gathering hash data about device from MDM_DevDetail_Ext01 class.

Let us know if it works for you.





0 Votes 0 ·

I just tested new KB5014699 2022-06 Cumulative Update for Windows 10 Version 21H2 for x64 on fresh installed system Windows 10 21H2, NO issue so far, script is able gathering hash data device from MDM_DevDetail_Ext01 class.

Let us know if it works for you.

0 Votes 0 ·
Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered

@AdamJacks-3196, For the command in the Powershell script, it is used to collect hardware hash by querying the instance of the class "MDM_DevDetail_Ext01" under "root/cimv2/mdm/dmmap". Based on my checking on my machine, it exists on my win 10 machine.
202121-image.png
We can open Powershell and run as administrator, run the similar commands as below to see if the class is there or if the instance is there:
Get-CimInstance -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND ParentID='./DevDetail'"
202131-image.png

If the instance is not there, I think there's maybe some issue on the OS. We suggest to do a clean install on the affected device to see if it can appear.

Meanwhile, from the aspect view of Intune, maybe we can consider other enrollment methods on these affected device. Like Azure AD join +Auto enroll. Here is a link with more details for the reference:
https://docs.microsoft.com/en-us/mem/intune/enrollment/device-enrollment#windows-enrollment-methods

Hope it can help.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (96.5 KiB)
image.png (94.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joeyvldn avatar image
0 Votes"
joeyvldn answered MarkVickery-2944 edited

Got this same issue. We're unable to remove KB5013942. Windows says this is a required security update and cannot be removed.

Same issue while trying Get-WMIObject instead of Get-CimInstance

(Get-WMIObject -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND ParentID='./DevDetail'").DeviceHardwareData

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm seeing the same issue here. If I attempt to navigate to the hash location in WMI Explorer, I get an access denied error. Digging down, it looks like the error starts when trying to enumerate the dmmap class in \\root\cimv2\mdm . Granting myself full rights, from WMI Control, will allow me to enumerate the class. Digging back into WMI Explorer we can now drill down to the MDM_DevDetail_Ext01 class... Which reports that there are no Instances.

I've removed all KB updates and tested to no change.

Specifically testing with a Dell Latitude 3520 at the moment.

0 Votes 0 ·
nickreid-2108 avatar image
0 Votes"
nickreid-2108 answered noobert87 edited

I'm also having this issue on Dell XPS laptops. The autopilot powershell script can't find the wmi entry for the hardware ID. Very frustrating as about to roll out a load of devices. Microsoft team please can you update us about this issue.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If we remove the KB but still can't get the hardware hash, we need to contact windows support to get more help. In this thread, I find the tag "windows-10=general" is already added. If there's no windows support been added, you can contact the Phone support to find the windows support to help on this.
https://support.microsoft.com/en-us/topic/global-customer-service-phone-numbers-c0389ade-5640-e588-8b0e-28de8afeb3f2

Thanks for the understanding.

0 Votes 0 ·

I am in a similar position as I have sent out devices globally to be pre-provisioned locally by my technicians. When checking winver, my device is on the build for KB5013942. When we try to uninstall it however it says it does not exist.

I had my technician login to the device with Azure creds and KB5013942 is not install. The Windows build says it is but we just downloaded and installed it and will try again today or tomorrow. I'll report back my findings. KB5015020 was released out-of-band 9 days later so I am hoping that if we still cannot export the hash installing this superseding update will allow us to.

Edit* I can confirm that after logging in, KB5013942 installed (even though the build showed it was), and we were able to export the hash and are now going through Autopilot as expected. Very, very strange issue.

0 Votes 0 ·
joeyvldn avatar image
0 Votes"
joeyvldn answered

FYI. The may updated 21H1 image does not have this issue. The 21H2 image still does.
I could probably start with 21H1 as my base image and then update to the most recent feature update using update policies.

Not the best but could work for some people..

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BoerdeGJ-6237 avatar image
0 Votes"
BoerdeGJ-6237 answered

@joeyvldn I have almost the same approach but just a little bit different, we image our devices with fast usb-sticks or external SSD`s running WinPE and our imaging software.
We have Powershell integrated in the WinPE, so we can run the hash script after imaging a device.

First I image the device with a base Windows 10 image (november 21H2 release), this is a very small image of only 6Gb and it only takes 1 minute to 'copy' this image, second I run the hash script to get the hash from the wmi database and third I image the device with the fully up to date (May 2022) image (12Gb).

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AEmery-7902 avatar image
0 Votes"
AEmery-7902 answered

I had the same issue with an HP:

After a format :

1) at Keyboard screen start cmd consol and go to appwiz.cpl / uninstall microsoft updates
2) run eplorer to start Edge to download HP image assistant to update Bios and drivers (not software)
3) restart and after that I could enroll my HP on my tenant

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.