Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server