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!

ChangePassword -vs- Set Password

Status
Not open for further replies.

GeeWond3r

IS-IT--Management
Sep 5, 2003
65
US
I'm unable to change a password using the usr.ChangePassword "old","new" method. Although I am able to user the SetPassword perfectly! But I prefer a solution on the ChangePassword method. Any idea y can't I get it to work?

This works fine:
Set usr = GetObject("WinNT:").OpenDSObject("WinNT://myDomain/Server1/John,user", "Admin@myDomain.com", "myPassword", 1)
usr.SetPassword pwd
usr.SetInfo

This doesn't work:
Set usr = GetObject("WinNT:").OpenDSObject("WinNT://myDomain/Server1/John,user", "Admin@myDomain.com", "myPassword", 1)
usr.ChangePassword "old", "new"
>>gave me the error: -2147023569

Also tried and still no go:
Set usr = GetObject("WinNT://myDomain/John,user")
usr.ChangePassword "old", "new"

Argghhhhh... hElP me?!.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top