Microsoft - DS Tools
VendorMicrosoft
PlatformWindows
Version2003
Monday, 19 May 2008 15:33

DS Tools are great for batching large changes to the Active Directory. Here are some examples:

dsadd group

dsadd adds a group.

dsadd group dn=Sales,ou=South,dc=carsLTD,dc=com

dsmod group

dsmod modifies a group.

dsmod group "cn=Accounts,ou=South,dc=Carsltd,dc=com" - addmbr "cn=salesman2,ou=Sales, dc=Carsltd,dc=com"

dsquery group

dquery queries a group.

dsquery groupname south* | dsmod group -addmbr [members to add DN]

dsget

dsget retrieves info on an object(s). The following example would output everything that this user is a member of.

dsget users [Users DN] -memberof

Example

Within this example PC1 would be moved from the OU "PSOU" to the OU "PCS TEMP"

C:\>dsmove "cn=PC1,ou=*PCSOU,dc=MYCOMANY,dc=org,dc=uk" -newparent "ou=*PCS temp,dc=MYCOMPANY,dc=org,dc=uk

Additional

Further information on DS Tools can be found at www.computerperformance.co.uk



 
We have 44 guests online