The LDIFDE command-line tool, which ships with Windows Server 2003 and Windows Server 2008, can be used to export the schema from the source forest. This tool creates a file that is formatted with the LDAP Data Interchange Format (LDIF). No special permissions are required to export the schema from the source forest, and any domain user can perform this task.
To export the schema from the source forest, do the following:
- Log on to a member server or a domain controller.
- Open a Command Prompt window.
- Type the following into the Command Prompt window:
ldifde -f PRODSchema.ldif -d CN=Schema,CN=Configuration,DC=WS08DOMAIN01,DC=local
Source: http://technet.microsoft.com/en-us/magazine/2009.04.schema.aspx#id0180006
Extra Help:
Replace
ldifde -m -j "%userprofile%Desktop" -f PRODSchema.ldif -d CN=Schema,CN=Configuration,DC=<YOUR DC>,DC=COM -s localhost:389
Originally Posted on July 25, 2013
Last Updated on October 26, 2015
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.