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?!.
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?!.