A. It's very common for companies to have multiple forests that they need to merge, but before doing so they need to understand if there are differences in their schema configurations. Fortunately, you can export the schema configuration (which is common for all domains in a single forest) using the ldifde command, as shown below. Note that you pass the forest root domain in the command.

C:\>ldifde -f SavSchema.ldif -d CN=Schema,CN=Configuration,DC=Savilltech,
DC=Net
Connecting to "SAVDALDC11.savilltech.net"
Logging in as current user using SSPI
Exporting directory to file SavSchema.ldif
Searching for entries...
Writing out entries.....................................................
........................................................................
........................................................................
1550 entries exported

The command has completed successfully

You can now use this file to compare your schema with another schema output or a live schema using various third party tools or the Active Directory Schema Analyzer utility, which I detailed in a previous FAQ.

Related Reading:

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.