Need script to clear home drive AD attributes from a list of users
Posted on 2008-06-14
I have a list of user accounts (username only, one user per line) in a text file, and I need a way to remove the home drive attributes from these users active directory accounts. I'm looking for a vbscript that will read this text file, and for each user search a given OU (and all OUs underneath that OU) and if it finds the user, it removes the home drive attributes from their accounts.
If possible, I'd also like it to output to a file containg each account that it processed and it's location in AD, as well as its success or failure.
Any help would be appreciated. Thanks!