DSRM.exe – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Delete objects from active directory.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Syntax DSRM ObjectDN [-subtree [-exclude]] [-noprompt] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-c] [-q] [{-uc | -uco | -uci}] Key ObjectDN Distinguished name of the group that you want to remove. If omitted will be taken from standard input (stdin) -subtree Delete the object and all objects contained in its subtree. -exclude Delete all objects contained in the subtree, but not the object itself. -noprompt Do not prompt to confirm deletion. -s Server Connect to a remote server/domain, default=%logonserver% domain controller. -c Continue with the next object after any error (when you specify multiple target objects) by default dsrm will exit when the first error occurs. -q Quiet, suppress all output -uc Unicode format -uco Unicode format for output only -uci Unicode format for input only |
1 2 3 4 5 6 7 8 9 |
Examples Remove all objects under the OU AcmeCo, but leave the OU intact: C:\> dsrm -subtree -exclude -noprompt -c "OU=AcmeCo,DC=F4T,DC=Com" Find all the computer objects that have been inactive in AD for the last 52 weeks and remove them: C:\> dsquery computer -inactive 52 | dsrm -noprompt |
You have brought up a very superb details , appreciate it for the post.
I really like your writing style, good information, regards for posting : D.