Active Directory Commands

dsadd Creates and object in the directory
dsget Gets the attributes of an object
dsmod Changes the attributes of an object
dsmove Moves and object
dsrm Removes and object or container with all objects
dsquery Runs a query
csvde Import/Export Objects from/into a csv file
ldifde Import/Export (Lightweight Directory Access Data Interchange Format)
dsa.msc Active Directory Console

Examples:
dsadd user “cn=Todd Test,ou=Users,dc=mist,dc=com” –samid ttest –upn ttest@mist.com
dsadd group “CN=Marketing,OU-Groups,DC=mist,DC=com” –samid Marketing –secgrp yes –scope g
dsget group “CN=Marketing,OU-Groups,DC=mist,DC=com” –members -expand
dsget user “cn=Todd Test,ou=Users,dc=mist,dc=com”
dsrm “cn=Todd Test,ou=Users,dc=mist,dc=com”
csvde –i –f NewUsers.txt
ldifde -i -f NewUsers.ldf

admin on June 4th 2009 in Windows Server

No Comments »

Trackback URI | Comments RSS

Leave a Reply

*




Check out new movies online website. Download and buy movies now.
1