Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove AD user

Status
Not open for further replies.

sparkbyte

Technical User
Sep 20, 2002
879
US
Has anyone seen a script that removes a user's roaming profiles from a list of servers then deletes the user from AD?



Thanks

John Fuhrman
Titan Global Services
 
Yes, I have such a script.

What you need to do is:

1. grab the user name
2. build an array of locations where the roaming profile may be stored
3. connect to each of the above and use the file system object to delete the users folder if it exists
4. delete the user

My script also adds to the event logs to record what was done. Sorry I am not able to share this one, it is slated for my Admin Script Pack but the above should help you duplicate most of my efforts.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Thanks Mark, that will help. I am swamped right now but should be able to put some time into it in about 3 weeks. :(



Thanks

John Fuhrman
Titan Global Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top