troubleshooting Question

i want to automate the process of cleaning up my active directory

Avatar of mgmohiuddin
mgmohiuddin asked on
Scripting LanguagesWindows BatchVB Script
9 Comments1 Solution322 ViewsLast Modified:
i want to automate the process of cleaning up my active directory. i have some 1500 computer accounts that are stale in my active directory. i want to clean them up. so firstly i want to run a script to get a list of computers that are stale. secondly i want to take only 50 computers from the list and test if they are still on the network, like for example ping the computer names. then i want to disable those 50 computers and move it to an ou. i will keep them there for another 30 days before deleting. maybe just an idea, create script 1 to get a list of computers. then cut and paste 50 computers from the list to another text file and use the text file to check if these computers are stlll online by anychance. if no then i want to use the text file containing the 50 computesr to disable the computers and move them to a specific OU. the every month i will delete the obselete accounts manually. need help in creating those scripts and also how to run the scripts

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros