Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Server

Windows Server 2008 : Working with the Schema - Modifying the Schema with adprep, Registering the Active Directory Schema Snap-In

5/24/2013 5:38:15 PM

1. Modifying the Schema with adprep

There are occasions when you need to modify the schema. For example, if you originally created your forest and domain by promoting a Windows Server 2003 server to a domain controller (DC), the forest and domain will not support Windows Server 2008 DCs. However, you can easily resolve this by modifying the schema with the adprep tool. The adprep tool is available on the installation DVD.

Tip

The adprep executable file is stored in the \sources\adprep folder on the Windows Server 2008 installation DVD. It’s stored in the \support \adprep folder on the Windows Server 2008 R2 installation DVD.


The following table shows common uses of the adprep command.

Note

It’s not necessary to run adprep if the forest was created on a Windows Server 2008 server. However, it doesn’t cause any problems if you try.


adprep CommandComments
Prepare a forest for Windows Server 2008.
C:\>d:\sources\adprep\
adprep /forestprep

This command updates the schema information used for the forest. It must be run before the adprep / domainprep command.

Tip

You must run this command on the server hosting the schema master role.

Note

You must be a member of both the Enterprise Admins and Schema Admins groups to run this command.

In the example, the installation DVD is in the D: drive. If your installation DVD is in a different drive, you’ll need to substitute the drive letter.
Prepare a domain for Windows Server 2008 DCs.
C:\>d:\sources\adprep\
adprep /domainprep

After adprep /forestprep is run, you can run this command. It prepares the domain for both Windows Server 2008 and Windows Server 2008 R2 domain controllers.

Tip

You should run this command on the DC hosting the Infrastructure Master role.

Note

You must be a member of the Domain Admins group to run this command.

C:\>d:\sources\adprep\
adprep /domainprep
/gpprep

This command is similar to the adprep /domainprep command, but it also provides updates to the schema for the Resultant Set of Policy (RSoP) tool.

Note

You must be a member of the Domain Admins group to run this command.

Tip

The /gpprep switch is needed if the current domain is running on a Windows 2000 domain controller. It’s not needed if the current domain is running on Windows Server 2003 domain controllers.

Prepare the forest for RODCs.
C:\>d:\sources\adprep\
adprep /rodcprep

If you also want to add Read-only Domain Controllers (RODC), you need to run this command.

Note

You must be a member of the Enterprise Admins group to run this command.


Tip

After running adprep, ensure that you give it enough time to replicate the changes to all domain controllers before making changes. For example, if you’re running adprep /domainprep to prepare a Windows Server 2003 domain to host Windows Server 2008 domain controllers, give replication enough time to replicate the changes to all DCs in the domain.

2. Registering the Active Directory Schema Snap-In

You can’t access the Active Directory Schema snap-in by default. This is to provide an extra layer of protection so that someone doesn’t accidentally modify the schema causing problems. You can access the schema only after you register the schmmgmt.dll for the Active Directory Schema snap-in.

The command to register the Active Directory Schema is

regsvr32 schmmgmt.dll

After you register the snap-in, the Active Directory Schema will be available as a snap-in that you can add to an MMC as shown in Figure 1.

Figure 1. Adding the Active Directory Schema snap-in to an MMC
Other -----------------
- Windows Server 2008 : Promoting and Demoting a Domain Controller - Using dcpromo to Install from Media, Forcing Removal of Active Directory
- BizTalk Server 2009 : Use The Business Rule Engine (part 2) - What Are the Artifacts That Constitute a Business Rule?
- BizTalk Server 2009 : Use The Business Rule Engine (part 1)
- Microsoft Dynamics CRM 4 : Scribe Integration - Scribe Insight Architecture
- Microsoft Dynamics CRM 4 : Scribe Integration - Integration Options
- Maintaining Dynamics GP : Safeguarding data by Backing Up everything
- Maintaining Dynamics GP : Improving stability by Managing Dictionaries
- Client Access to Exchange Server 2007 : Using Cached Exchange Mode for Offline Functionality
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 3) - Using Group Schedules
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 2) - Sharing Information with Users Outside the Company
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro