I would like to export an particular subTree of an Organisational Unit in an Active Directory domain to XML. I have installed DSFW on the server and can run the following command successfully:
C:\DSFW\Tools>dsde /mode export /baseDN DC=domain,dc=local /server http://servername.domain.local/dsml/adssoap.dsmlx
/protocol DSML /output C:\TEMP\AD.xml /attributes name,sn,givenName,title,te
Class,uid /scope subTree
However, this exports everything in the domain.
The tree in AD is as follows that I want to export:
+ Active Directory Users and Groups
Where TREE3 contains a number of sub folders (organisational units) and TREE1, TREE2, and TREE3 are organisation units themselves.
I suspect the /baseDN line needs to be changed however, if I change it to /baseDN OU=TREE3,OU=TREE2,OU=TREE1
,DC=local then "0 entries were exported successfully".
Also, what's the attribute for the e-mail address of the users? I would like this to be in the XML too.
Any help much appreciated.