Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 17, 2009 12:00 AM

Q. Are there any tools provided with Windows Server 2008 and above to compare schemas?

Windows IT Pro
InstantDoc ID #102958
Rating: (0)

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.113556.1.4.159

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=Net
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.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.