3 Ways to Move AD Objects
1. Open ADUC and drag and drop object
2. Context Menu - right click
3. DSMove - Command line
To move user tunger from the users container to the sales users ou under corp users ou here is the command
dsmove "cn=tunger,cn=users,dc=tonyunger,dc=com" -newparent "ou=sales users,ou=corp users,dc=tonyunger,dc=com"
3 Ways to Delete Objects
1. Highlight object and hit delete button on keyboard
2. context Menu - right click and choose delete
3. DSRM - command line
Remove an ou named sales users and all objects under the ou
DSRM -subtree - nopromp -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"
To remove all objects under an OU named sales, but leave the ou intact
DSRM - subtree -exclude -noprompt -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"
Add a user
dsadd user "cn=tunger,cn=users,dc=tonyunger,dc=com" -fn Tony -ln Unger -pwd 1234 -mustchpwd yes
These are just random notes and programs that may have incomplete descriptions. Any scripts or programs use at your risk
Tuesday, September 6, 2011
Managing AD objects
Subscribe to: Post Comments (Atom)
Running solidcore you may run into a problem where you have to disable it with out using epo or the local CLI Here are the steps. ...
Save the following as a batch file and run as a local admin account: REM REM icacls c:\Windows\inf\usbstor.inf /reset i...
Purpose: This script will search AD for all servers and report any shares(includes printers) This script will do 50 servers...
Post a Comment