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

Adam Jacks 36 Reputation points
2022-05-13T13:25:05.937+00:00

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
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,696 questions
Windows Autopilot
Windows Autopilot
A collection of Microsoft technologies used to set up and pre-configure new devices and to reset, repurpose, and recover devices.
411 questions
{count} votes

Accepted answer
  1. Robert Florek 86 Reputation points
    2022-05-16T13:31:14.923+00:00

    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!

    2 people found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Boer de, GJ 1 Reputation point
    2022-06-02T07:33:20.573+00:00

    @Joey Vldn 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).

    0 comments No comments

  2. A-Emery 1 Reputation point
    2022-07-14T09:45:25.347+00:00

    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 comments No comments