|
Why do I want this? Hmmm... Long story.
At various stages in the school year I place AD users who have left (and even whole OU) in a storage OU called "DeleteMeLater". I've found that if I use Active Directory Users and Containers in my Console to delete these users then i have a terrible job finding their homedirs which don't get wiped when they are wiped. Also, occassionally, I find homedirs can't be removed from the server even manually. For example, I've got two such folders that give @error = 9 when I script their deletion.
So, I'm building a Kixform which allows me to: 1. loops through all users in DeleteMeLater and move their homedirs into a special folder so they are in one place. 2. delete each user in DeleteMeLater 3. delete each homedir 4. log any errors 5. Place troublesome homedirs in a folder marker "PigsOfThings" ... or something less polite
If you think there is a much better solution I'd love to know.
|