fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Microsoft - DS Tools

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

dsadd group

dsadd adds 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.

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

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001