A. If you install the Active Directory Lightweight Directory Services (AD LDS) role in Server 2008, the AD Schema Analyzer (ADSchemaAnalyzer.exe) is also installed. You can run Schema Analyzer using a link in the Advanced Tools section of Server Manager, or you can run it directly as C:\Windows\ADAM\ADSchemaAnalyzer.exe. You don't have to create any AD LDS instances—you just need to install the role to get access to the tools.
Once you've executed the tool, you have the option to load a target schema and a base schema. For both the target and base, you can load either an LDIF file, as shown here, or the schema from a live AD (by passing a DC and credentials). This means you can compare a live AD to an LDIF file, compare two LDIF files, or compare two live ADs.
Once both schemas are loaded, the utility compares them. You can select the "Hide present elements" option to show only differences between the schemas. You can select each element you want to export individually, or include every element using the "Mark all non-present elements as included" option from the Schema menu.
To create a file containing the differences between the schemas, select "Create LDIF file" from the File menu. You can load this file into another forest to close any differences. If you open the difference file, you'll see text similar to the following:
# Attribute: accountExpires dn: cn=Account-Expires,cn=Schema,cn=Configuration,dc=X changetype: add objectClass: attributeSchema attributeId: 1.2.840.1135220.127.116.11
Note that for the domain, it only has dc=X. To load the differencing file you need a valid domain, but you don't have to edit the difference file—you can tell the ldifde utility to make the change.
To import, use the command below. Note the switch -c, which tells the command to replace dc=X with the DC=Savilltech,DC=Net and the -i says to import.
ldifde -i -f difference.ldf -c dc=X DC=Savilltech,DC=NetRelated Reading:
- Do I have to update the Active Directory (AD) schema for System Center Configuration Manager (SCCM) 2007?
- How do I update the AD schema with the SCCM 2007 updates?
- Q. How many Active Directory Federation Service (ADFS) servers do I need in a multi-domain environment?
- New Active Directory Features in Windows Server 2008 R2
Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.