Updating MCS catalog fails with error FailedToUnregisterMasterImageFromMdm

Updating MCS catalog fails with error FailedToUnregisterMasterImageFromMdm

book

Article ID: CTX693371

calendar_today

Updated On:

Description

Error updating an MCS catalog in Citrix DAAS 

 

Action Name: MC_CreateMachineCatalogInitialzation

Exception: StudioErrorId : ProvisioningTaskError

ErrorCategory : NotSpecified 

TaskState : FailedToUnregisterMasterImageFromMdm

TaskStateInformation : Terminated ErrorId : FailedToUnregisterMasterImageFromMdm Operation : ImagePreparation ErrorMessage : A problem was detected while unregistering from the MDM. The issue was: UnregisterMdm failed within 5 minutes Error Source : CitrixOrchestration DL_GLOBAL_FDT_SDC4_CITRIX_INDIA

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

  1. On the  the maaster  image, check the registry "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\OMADM\Accounts"

    get the account id(it will be empty if the VM is not enrolled)


    2. then go to registry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\01C7BBFC-8FCF-4850-B6D9-5F69D68C15F9

    if the EnrollmentType = 6 and ProviderId="MS DM Server", it means MDM enrolled
    if the EnrollmentTYPE = 5 and ProviderId = "MAM SyncML Server", it means MAM enrolled.


 
 
 

First backup and then  delete the below  enrollment keys and try to update the catalog again.

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments

If above fails there is also a tool called GetAadJoinState.exe which can be used to remove the MDM enrollment . This is available from Citrix Support.


Problem Cause

The back end logs suggest the master image is MDM Enrolled.


14:19:06:GetMdmEnrollmentId: Get MDM enrollmentID:6CCD99DF-383E-4F24-A03C-xxxxxxxxxxxx from SOFTWARE\Microsoft\Enrollments.

14:19:06:GetMdmEnrollmentId: Get MDM enrollmentID:D15B5634-B1C9-49F8-B2CE-xxxxxxxxxxxxx from SOFTWARE\Microsoft\Enrollments.

14:24:41:PerformUnregisterMdm: UnregisterMdm failed within 5 minutes