Directory Services

Exporting Active Directory Objects Through DSML Services for Windows

[This documentation is preliminary and subject to change.]

This example uses DSDE to export employee data to a file from the Active Directory domain using DSML Services for Windows.

The following example runs from a command line. To open a command prompt window, click Start on the taskbar and then click Command Prompt.

C:\Documents and Settings\MyUserName> cd \program files\microsoft\dsde
C:\Program Files\Microsoft\DSDE> dsde /mode export
									/query (sn=Smith)
									/baseDN CN=Users,DC=fabrikam,DC=com 
									/protocol DSML
									/output employees.xml 
									/attributes name,sn,givenName,title,telephoneNumber,objectClass

Note  For clarity, the command line is shown divided into several lines. Normally, it will be entered all on one line.

The command line options used in this example perform the following functions:

The following is a partial listing of the resulting employees.xml output file.

<batchResponse xmlns:xsi="" 
	<searchResultEntry dn="CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com">
	<attr name="objectClass">
	<attr name="sn">
	<attr name="title">
	<attr name="telephoneNumber">
		<value>(425) 555-0174</value>
	<attr name="givenName">
	<attr name="name">
		<value>Jeff Smith</value>
	<resultCode code="0" descr="success" />