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!

Multiple AD changes & move OU's + Inputbox

Status
Not open for further replies.

Chris71

MIS
Mar 28, 2007
9
US
Hey guys I am really new to VB Scripting, infact I am just starting out and probably in over my head. But If I wanted to do multiple changes to AD given a username how would I do it also please reference any possible code.

Basically
Start it out with a UserName = inputbox "Username"

"Please enter the username bob.smith"

after you hit enter it will be able to:

1. reset the password to a random complex password,
a. user cannot change password,
b. password never expires.
2. Set the description to todays date / basically date of termination
3. Deny permission to log into any terminal servers
4. Hide the username from address book
5. Forward all new email to managers email (Input another text box maybe)
6. Remove all grps except domain users and email backup grp
7. Move the user to another OU called terminations/2008-01,02,03...

I am not asking for someone to write all the code for me, which hey ya that would be great, but I really am not sure where to start, I would ofcourse probably try this out on a DEV server to see if its working.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top