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

How on earth do I Invoke "Change Password" from a shortvut ?

Status
Not open for further replies.

DaSmee

MIS
Jun 26, 2002
40
GB
Okay, what little hair I have left is slowly being torn out, I am sure I will kick myself, but can anyone advise me how to create a desktop shortcut to invoke the Change Password dialogue?

I am running a Server 2003/Citrix Server Farm, and have removed the Windows Securty options, but have been asked to provide a shortcut for this function, any assistance is as always gratefully received.
 
You can use an IIS server to provide password change functionality (that's how we do it in my environment). Take a look at the MS KB article


You can also change it within Outlook if users are using Outlook on the systems.

You could also place a .VBS on the All Users desktop to prompt for a password change.

Nathan aka: zaz (zaznet)
zaz@zaz.net
 
Perhaps a vbscript can get this done. Ask in this forum - and they may be able to help

You may get it done another way (not via the dialogue box. One of the tools I use called chown is developed by a guy called Alexander Frink. He also has a tool called passwd which can be run via command line. You do not have to be an admin to run it which is basically what you seem to be after.
It was written for NT but I have found his tools work on Win2K (havn't tried any on win2003 yet though). His link is Of course, test it thoroughly before implementing it in production.

Still, preference-wise - try the vbscript gurus first.



Claudius (What certifications??)
 
I'm currently looking at writing a script to do it, but I'm not a VBScript Guru yet. This makes a good practice project for me :) DaSmee will become my Beta Tester :)

Nathan aka: zaz (zaznet)
zaz@zaz.net
 
Use this. Save it to the all users desktop as a .vbs, and then run it.

Code:
strComputer = "[blue]atl-win2k-01[/blue]"
Set objUser = GetObject("WinNT:// " & strComputer & "[red]/kenmyer[/red] ")
objUser.Put "PasswordExpired", 1
objUser.SetInfo

Change the user name that is in red to whatever username you want changed.
Change the strComputer that is in blue to whatever the name of the server is that you wish to do this.
This script requires the user to change his password the next time they log in. Don't really know if this is what you want.
 
Here is another one that kind of does the same thing, but you can say what the password is:

Code:
Dim objuser, strname
strComputer = "[red]server-name[/red]"
strname = InputBox "enter the username"
strpass = InputBox "enter the new password"
Set objUser = GetObject("WinNT:// " & strComputer & "/" & strname &)
objUser.SetPassword strpass
objUser.Put "PwdLastSet", 0
objUser.SetInfo

Just remember to change the server-name marked in red.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top