|
|
|||||||
I found a example code set on here that uses: Function UserChangePass($oldpassword,$newpassword) $UserID = GetObject("WinNT://@domain/@userid") If @error = 0 $Userid.changepassword($oldpassword,$newpassword) Exit(@error) Else Exit(5) EndIf EndFunction Does this work for 2k? I've tried several times, to no avail.. It says it cant change it.. |
||||||||
|
|
|||||||
This works for me on an NT4 domain. I can't try it for 7 days on our AD domain because of the password policy. This is the code I used: code:The error I get. I believe that it is as a result of the policy.break on quote:In your script you used @domain. Should you be using @ldomain? [ 01. April 2003, 06:21: Message edited by: Howard Bullock ] |