creative555
asked on
Ho do I start fresh and quickly remove about 50,000 objects from test AD that were unsuccessfully imported. Script is needed
Hello,
I did a bad import of objects to the test AD lab and need to remove all objects. They located on many levels and sub OUs. Could you please help me with the script to get rid of them or maybe even the way to just remove entire AD quickly and start fresh.
Thanks
I did a bad import of objects to the test AD lab and need to remove all objects. They located on many levels and sub OUs. Could you please help me with the script to get rid of them or maybe even the way to just remove entire AD quickly and start fresh.
Thanks
ASKER
Where do I need to run it from? Does it have to be DC? It says unrecognized command
ASKER
Also, is it possible to load the csv with DN column and specify through the command to remove objects in excel? WHat would be the command?
Thank you
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Alternatively, follow the steps to completely remove AD from the server.
On DC, run "dcpromo"
tick "Delete the domain" Next...
tick "Delete all applications..." Next...
Reboot
Again from server manager, click "Remove Roles" and uncheck "Active Directory Domain Services" -> Next...
Reboot
On DC, run "dcpromo"
tick "Delete the domain" Next...
tick "Delete all applications..." Next...
Reboot
Again from server manager, click "Remove Roles" and uncheck "Active Directory Domain Services" -> Next...
Reboot
ASKER
DOos it have to be 2008 DC? Can it be 2003 DC?
I guess it does not matter.
Open in new window