Forum Discussion

TomD22's avatar
TomD22
Copper Contributor
Oct 06, 2025

Unable to install Windows 10 ESU due to unknown MDM

I have been trying to get the Windows 10 ESU program enrollment done, but an unable to. It appears that I am connected to some MDM, but I have never to my knowledge done so. Also, there are no options listed in "Accounts-> Work or School."

I ran the following in Powershell and got outputs 0 True 0 2, indicating the MDM registration.

$t = [AppDomain]::CurrentDomain.DefineDynamicAssembly((Get-Random), 1).DefineDynamicModule((Get-Random), $False).DefineType((Get-Random)) $t.DefinePInvokeMethod('IsDeviceRegisteredWithManagement', 'mdmregistration.dll', 22, 1, [Int32], @([Boolean].MakeByRefType(), [IntPtr], [IntPtr]), 1, 3).SetImplementationFlags(128) $t.DefinePInvokeMethod('NetGetJoinInformation', 'wkscli.dll', 22, 1, [Int32], @([IntPtr], [IntPtr].MakeByRefType(), [UInt32].MakeByRefType()), 1, 3).SetImplementationFlags(128) $Win32 = $t.CreateType() $JoinedMDM = $False; $Win32::IsDeviceRegisteredWithManagement([ref]$JoinedMDM, 0, 0); $JoinedMDM $JoinedDomain = 0; $Buf = 0; $Win32::NetGetJoinInformation(0, [ref]$Buf, [ref]$JoinedDomain); $JoinedDomain

 

Thanks for any ideas,

Tom

No RepliesBe the first to reply

Resources