In this article, we will teach you how to fix DllRegisterServer failed error code 0x80040201 schmmgmt.dll While migrating the active directory domain controller, getting this error: the module “schmmgmt.dll” was loaded, but the call to “DllRegisterServer failed” with “error code 0x80040201”
Table of Contents
DllRegisterServer failed Error Code 0x80040201
When we are trying to register the Active Directory Schema Snap-in (also known as the Schema MMC console or the Schema Console) using Windows or Windows Server, you may need to run the command from the command prompt. Differently, you will see the following error after entering the registration command: “regsvr32 schmmgmt.dll”
We are getting these error messages because UAC (User Account Control) on the computer may be limiting the competencies to register the Active Directory Schema Snap-in. Even when we log in with a user account that is a part of the Schema Admins group,. Note that it is not necessary to log in with an elevated command prompt using an account that belongs to the Schema Admins group.
To open a command prompt with admin rights, click on the Windows search button from the toolbar and enter Command Prompt. Then, you select Run as Administrator or right-click Command Prompt and choose Run as Administrator. To learn more in detail, please refer to Microsoft.
Register regsvr32 schmmgmt.dll
Enter the below command, and then hit enter.
regsvr32 schmmgmt.dll
Once the Schema Management dll is successfully registered (schmmgmt.dll), you will receive a successfully registered message.
You can now go back to the console root, choose a file, and add or remove snap-ins. You will definitely find active directory schema.