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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Active Directory Password

Status
Not open for further replies.

snootalope

IS-IT--Management
Jun 28, 2001
1,706
US
I've been searching for a while now for a vbs script that our domain users can run that will allow them to change their password. I have to script this as there's an application I need to kill after they change it and relaunch to re-authenticate.

Anyway, I found this -- but it doesn't appear to work. I can plug in the old password and set ta new one but the password itself doesn't get changed. Hoping someone here might know a vbs piece that can accomplish this. I've found a ton of scripts for an admin to change a users password, but not one for the user to change the password themselves.
 
In your link, the first (large) code box contains only a function. The function will do nothing unless it is called... which is what the box below it (labeled Sample VBScript Code) does. Combine the two and it should work
 
Ignore my post, I still had your other question open and answered it! oops.
 
oh...

Told ya I wasn't the brightest at this stuff. So do I combine them in the same file?
 
Ok, i combined them and it appears to do it's thing. However, it's not actually changing the active directory password even though it says it does.
 
All that code does is ask the user for an old password and a new password (with confirmation), and then returns it in an array. It does not do anything with active directory.
 
Most applications have a back-end, front-end, and a middle-ware layer. The link you posted is a "Change Password Dialog". It is only the front-end - how one interacts with the data. Active Directory is the back-end - the data with which one interacts. You need to create the middle-ware - the layer that connects the two ends.

front-end: middle-ware: <- This has a crude front-end
back-end: Active Directory

For a challenge, and potentially less frustrated domain users, stitch the front-end script into the middle-ware script.

-Geates



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top