troubleshooting Question

Delete user, home & profile directory and Exchange 2007 mailbox from within AD

Avatar of Benzini00
Benzini00 asked on
ProgrammingActive DirectoryVB Script
45 Comments1 Solution1189 ViewsLast Modified:
I'm looking for a similar VBS (see linked question) that could be used from within ADUC via the right click context menu - I already know how to add an item to a context menu and point it to the finished VBS, it's just the VBS itself that I need help with.

The VBS would give the ability to right click on an individual or large number of user objects within an OU, from the context menu you would select an appropriately named option that would launch the VBS from the NetLogon or central file share.

The VBS would then gather all required information and delete the following:

Home Directory (and all subfolders and files)
Profile Directory (and all subfolders and files)
Exchange 2007 Mailbox
AD User Object

The script would need to be able to run against any OU containing user objects in ADUC, it would also need to cope with a comma in the CN or Display Name of the user account eg:   Bloggs, Joe

Unlike the linked question I dont require a 'whenChanged' function, this would be actioned immediately regardless of whether the account is disabled / enabled.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 45 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 45 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