I want to change a password of a specific user on my computer by using
VBScript.
I just start using this language and i need a little help. I found a
lot of script to change password but in a Ldap environnement.

Re: Change local password by Björn

Björn
Tue Aug 16 03:24:50 CDT 2005

"Mats" <mathieu.chagnon@cima.ca> wrote in message
news:1124138776.735176.316870@z14g2000cwz.googlegroups.com...
> I want to change a password of a specific user on my computer by using
> VBScript.
> I just start using this language and i need a little help. I found a
> lot of script to change password but in a Ldap environnement.
>

Const USER_TO_CHANGE = "TestUser"
Const NEW_PASSWORD = "p@ssw0rd"
Set objUser = GetObject("WinNT://./" & USER_TO_CHANGE & ",user")
objUser.SetPassword NEW_PASSWORD
objUser.SetInfo


--
Björn Holmgren




Re: Change local password by Mats

Mats
Tue Aug 16 08:17:36 CDT 2005

Thanks for your help.