Tactical Advice

Active Directory Shortcuts

Don't paint yourself into a corner; use these tips for AD migration to Windows Server 2003.
This story appears in the March 2006 issue of BizTech Magazine.

Migrating old Windows NT domain-based networks to Windows 2000 Active Directory was an experience many network administrators would like to forget. Fortunately, the next step — migrating to Windows Server 2003 — is a lot easier.

Still, make sure that you've located your backups and verified that they work, lest you paint yourself into a corner with no way out. Have backups of at least two domain controllers in every domain of your Windows 2000 forest before you start. These should be full backups that include the System State, on these machines since that's where Active Directory actually resides. You can also create additional backups during the migration as extra insurance. Also, be sure to check the patch level on your Windows 2000 domain controllers; if they don't have the latest service packs and hot fixes, apply them now. Anything less than Service Pack 4 will cause problems.

Though they are a lot easier than they have been, Active Directory migrations are not trivial, so here are a few tips to help keep you on track:

1) Test your current environment

Upgrading a sick domain won't work. Common signs of a sick domain include replication failure, Group Policy settings not being applied, logon scripts failing to run and unusually long logon delays for clients. There are numerous tools available to check the health of your Windows 2000 domain controllers before upgrading them to Windows Server 2003. For example, Dcdiag.exe should be used to verify the presence of SYSVOL shares on your domain controllers, to verify whether the NetLogon service is running on them and to perform other domain controller health checks. Repadmin.exe, another useful tool, should be used to verify that the Active Directory replication is working properly within your domain. Other tools, such as Netdom.exe and Gpotool.exe, are also useful, so learn how these tools work and be sure to use them. Checking the event logs on your domain controllers is another good way to identify problems.

Fig 1>> Figure 1: Using repadmin.exe to troubleshoot Active Directory replication problems. [click to view screenshot]


>> Figure 2: Using gpotool.exe to verify Group Policy Object consistency. [click to view screenshot]

2) Verify free disk space

Simple things can cause big headaches if you're not careful. Do your domain controllers have enough free disk space to do the upgrade? The disk volume where Ntds.dit resides needs at least 20 percent free space for the upgrade to succeed. Be conservative — make sure you've got much more space available. If you lack sufficient space, you might be able to free up more by deleting any temporary files, unused user profiles, or memory dump files on your volume. Or you could do an offline de-fragmentation of Ntds.dit to try and reclaim additional space.


>> Figure 3: Using ntdsutil.exe to perform an offline defragmentation of the Active Directory database. [click to view screenshot]

3) Prepare your schema

The heart of Active Directory is the schema, which defines all the objects that the directory can store. If you don't prepare your schema beforehand, you'll get errors during migration such as: "The operation failed because a schema validation check failed" or "The version of the Active Directory schema of the source forest is not compatible with the version of the Active Directory on this computer." Even worse, you could end up with a mangled schema that may be unrecoverable — unless you're willing to spend hours on the phone with Microsoft Product Support Services and pay big bucks for it.

Schema upgrades can be straightforward. Start by running the "adprep /forestprep" command on your schema master and "adprep /domainprep" on your infrastructure master before you upgrade your first Windows 2000 domain controller or promote your first Windows Server 2003 member server. But if you have Exchange 2000 deployed in your Windows 2000 forest, it's going to be trickier. Consult article 325379 in the Knowledge Base on Microsoft TechNet and match your Exchange environment to the scenarios listed there before going any further.

Use the latest version of adprep.exe and forest.prep to exploit their enhanced error checking and reporting capabilities. This means the Windows Server 2003 Service Pack 1 for normal upgrades or the Windows Server 2003 R2 version if you're planning on moving directly to R2. Be sure to give the schema changes time to replicate across your forest before continuing with the upgrade.

To safeguard schema upgrades, Rodney Buike, a Microsoft MVP and Senior Network Administrator for Monarch Industries Ltd. in Winnipeg, Canada, recommends putting a new server online as a DC and transferring the Schema Master FSMO role to this new DC. Then disconnect the DC from the network and run adprep on it. If forestprep successfully completes, plug it back into the network so the changes can replicate, then disconnect it again to run domainprep, and when successful plug it back into the network. This prevents a failed forestprep or domainprep from killing your AD schema.

4) Migrate your domains

Once your forest and domains are prepared, go ahead and migrate them. There are two ways to do this: You can simply upgrade your existing domain controllers by running Winn32.exe. Or if you have the extra hardware, you can install new Windows Server 2003 machines, promote them to domain controllers, allow them time to replicate, transfer FSMO roles and then decommission your old controllers. Either way works fine; and both have advantages and disadvantages with regard to cost, time and effort.

If you choose to upgrade, be sure to start with your PDC emulators in each domain and the domain naming master in your forest root domain so you can create the necessary security principles and DNS partitions. Use the "/checkupgradeonly" switch first when you run Winnt32.exe to identify any compatibility issues that might affect the upgrade. Upgrade your PDC emulators and domain naming master first, then proceed with the rest.

Mitch Tulloch is a consultant and trainer based in Winnipeg, Canada, and is the author of 14 books on Windows administration and security.
Sign up for our e-newsletter

About the Author

Mitch Tulloch

Mitch Tulloch

Mitch Tulloch is a Microsoft Most Valuable Professional and lead author of the Windows 7 Resource Kit from Microsoft Press. You can follow him on Twitter at @MitchTulloch or friend him on Facebook at http://www.facebook.com/mitchtulloch.

Security

Review: Belkin Advanced Secu... |
This tool can prevent KVM toggling from being a source of network vulnerabilities.
Honeywords: Password Securit... |
Researchers are proposing a new method of spiking the password punch as a way to identify...
How Many Vulnerabilities Doe... |
The potential for damaging data breaches lurks in nearly every corner for SMBs.

Storage

EMC World 2013: Software-Def... |
Storage virtualization is a key element of providing on-demand, flexible cloud services.
How Steve Wozniak Explains V... |
Fusion-io's chief scientist breaks virtualization down into terms everyone can understand.
Product Review: Quantum NDX-... |
Device does double duty for storage and backup.

Infrastructure Optimization

Why More Software Is Headed... |
Many of your favorite software suites are trading in their shiny discs for cloud-based...
Cisco Live 2013: Brush Up wi... |
Get up to speed on convergence, wireless networking, collaboration and more ahead of the...
EMC World 2013: Software-Def... |
Storage virtualization is a key element of providing on-demand, flexible cloud services.

Networking

How to Secure Optimized Netw... |
WAN optimization and security aren’t always complementary. These tips can help you deal...
Cisco Live 2013: Brush Up wi... |
Get up to speed on convergence, wireless networking, collaboration and more ahead of the...
Do Virtual Meetings Boost Pr... |
New study finds that face-to-face meetings don’t always work in workers’ favor.

Mobile & Wireless

Consumr App Powers Informed... |
Reviews and ratings for products on the shelf are only a barcode scan away.
Faster In-Flight Wi-Fi: Com... |
The FCC is working on regulation to free up more Internet bandwidth for air travelers.
CTIA: Wireless Network Data... |
The invisible bytes that zip through the air continue to multiply at rapid rates.

Hardware & Software

Consumr App Powers Informed... |
Reviews and ratings for products on the shelf are only a barcode scan away.
Review: Belkin Advanced Secu... |
This tool can prevent KVM toggling from being a source of network vulnerabilities.
How Many Vulnerabilities Doe... |
The potential for damaging data breaches lurks in nearly every corner for SMBs.