Does anybody have good information on a script that will execute the following once the user name is inputted once:
1. Disable the User's account
2. Marks the "Hide from Exchange address lists" on the Exchange Advanced tab or just deletes the exchange mailbox.
3. Moves the User's home directory from \\homeserver\drive\%UserName% & to \\homeserver\disabled\%UserName%
4. Moves the user to the Disabled Users OU
5. Removes all group membership except domain user memebership.
Something like:
I don't think my code will work! My example above should get the most shoddy written code award!
)
Anybody have anything like that? (that's not shoddy!)
Thanks,
TT
1. Disable the User's account
2. Marks the "Hide from Exchange address lists" on the Exchange Advanced tab or just deletes the exchange mailbox.
3. Moves the User's home directory from \\homeserver\drive\%UserName% & to \\homeserver\disabled\%UserName%
4. Moves the user to the Disabled Users OU
5. Removes all group membership except domain user memebership.
Something like:
Code:
Dim strUserName
UserName = strUserName
Disable strUserName
Delete strUserName mailbox
Move \\homeserver\drive\ & strUserName to \\homeserver\disabled\ & strUserName
Move strUserName to disabled OU
Remove all membership for strUserName
I don't think my code will work! My example above should get the most shoddy written code award!
Anybody have anything like that? (that's not shoddy!)
Thanks,
TT