Unknown generic error 0x82AA0001 when enrolling Windows MDM device

Ionut Soare 0 Reputation points
2025-01-14T14:24:20.8133333+00:00

When enrolling a Windows11 device in our custom MDM, we implemented a backend that supports the following endpoints:

 - /EnrollmentServer/Discovery.svc

 - /api/Windows/Authenticate

 - /EnrollmentServer/Policies.svc

 - /EnrollmentServer/Enrollment.svc 

 

Our purpose is to develop an MDM that connects to an on-premise AD. As described in Microsoft documentation, the above services implement:

 - Discovery ( https://zcusa.951200.xyz/en-us/openspecs/windows_protocols/ms-mde2/98547779-b770-4730-9261-8ecaa1604c10 )

 - Authentication in our system (custom implementation that results in an opaque token)

 - Policies ( https://zcusa.951200.xyz/en-us/openspecs/windows_protocols/ms-mde2/8a5efdf8-64a9-44fd-ab63-071a26c9f2dc )

 - Enrollment ( https://zcusa.951200.xyz/en-us/openspecs/windows_protocols/ms-wstep/ac55b8cc-9ade-4982-b135-991d574ade74 , certificates generated with a self signed openssl certificate) 

 

Entire flow is described here: https://zcusa.951200.xyz/en-us/windows/client-management/on-premise-authentication-device-enrollment 

 

In the enrollment process, first 3 steps succeeded, but even if 4th step (enrollment) is "parsed successfully", it crashes with unknown error. 

 

Logs from Event Viewer: 

 

Information > MDM Enroll: Authentication successful: Got token from STS.

Information > MDM Enroll: Certificate policy request sent successfully.

Information > MDM Enroll: Certificate policy response processed successfully.

Information > MDM Enroll: Certificate enrollment request sent successfully.

Information > MDM Enroll: Certificate enrollment response parsed successfully.

Error > MDM Enroll: Provisioning failed. Result: (Unknown Win32 Error code: 0x82aa0001).

Error > MDM Enroll: Failed (Unknown Win32 Error code: 0x82aa0001)

Information > MDM Unenroll: Finished user independant unenroll

Information > MDM Unenroll: Unenroll origin is: (Failed to process server enrollment provisioning, rolling back).

Information > OmaDmLogOmaDmApiInitiateSession: Result: (The system cannot find the file specified.), Account Id: (3DD9D1E2-C4E6-44FE-B76C-9AA79B2083C1), Initiation Id: ({BBD1793E-2F3C-4BA0-8547-690BBD6ADEAE}), Mode: (2), Origin: (9), AutoDelete: (false), Alert Count: (1), First Alert Name: (com.microsoft:mdm.unenrollment.userrequest), User Sid: (NULL), User Only: (false), All Active Users: (false), Process Name: (C:\Windows\system32\svchost.exe), System Or Admin: (true).

Error > MDM Unenroll: Error sending unenroll alert to server. Result: (Incorrect function.).

Information > MDM Unenroll: Changing dmwappushservice startup type to demand-start. Result: (Incorrect function.).

Information > MDM Unenroll: Succeeded

Error > MDM Enroll: Enrollment via UX failed. Result: (Unknown Win32 Error code: 0x82aa0001).

 

Any help / ideas how to continue / fix this error?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,801 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,430 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.