Share via


Install the Active Directory Schema Snap-In

Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

You can use this procedure to first register the dynamic-link library (DLL) that is required for the Active Directory Schema snap-in. You can then add the snap-in to Microsoft Management Console (MMC).

Membership in Domain Admins, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (https://go.microsoft.com/fwlink/?LinkId=83477).

To install the Active Directory Schema snap-in

  1. Open an elevated command prompt. Click Start, type command prompt, and then right-click Command Prompt when it appears in the Start menu. Next, click Run as administrator. When the Command Prompt opens, type the following command, and then press ENTER:

    regsvr32 schmmgmt.dll
    

Tip

  • Although the regsvr32 command shows that it is a 32-bit based command, it does run properly in the 64-bit versions of the supported operating systems.

  • If you do not run the command from an elevated command prompt or if you do not have the appropriate permissions, you may see the following error message: “The module ‘schmmgmt.dll’ was loaded but the call to DllRegisterServer failed with error code 0x80040201.” If you see this error message, check the group memberships of the user account that you are using for this operation and ensure that the user account is a member of the Schema Admins group and that you ran the command from an elevated command prompt.

    1. Click Start, click Run, type mmc, and then click OK.

    2. On the File menu, click Add/Remove Snap-in.

    3. Under Available snap-ins, click Active Directory Schema, click Add, and then click OK.

    4. To save this console, on the File menu, click Save.

    5. In the Save As dialog box, do one of the following:

      • To place the snap-in in the Administrative Tools folder, in File name, type a name for the snap-in, and then click Save.

      • To save the snap-in in a location other than the Administrative Tools folder, in Save in, navigate to a location for the snap-in. In File name, type a name for the snap-in, and then click Save.

    Warning

    Modifying the schema is an advanced operation that is best performed by experienced programmers and system administrators. For detailed information about modifying the schema, see Active Directory Schema in (https://go.microsoft.com/fwlink/?LinkId=80809).

    Additional considerations

    • To perform the Schmmgmt.dll registration portion of this procedure, you must be a member of the Domain Admins group in the domain or the Enterprise Admins group in the forest, or you must have been delegated the appropriate authority. Adding the Active Directory Schema snap-in to MMC requires only Domain Users group membership. However, making changes to the schema requires membership in the Schema Admins group.

    • The Windows Server 2008 Administration Tools Pack cannot be installed on computers running Windows XP Professional or Windows Server 2003.

    Additional references