Hi
I'am writing a script from which the user himself or herself can
change his or her password.
A major part of this script is here:
"Private Function SetPW(Usr, PW)
Dim oUser
Set oUser = GetObject("WinNT://" & Location & "/" & Usr &
",user")
If Err.Number = 0 Then
Call oUser.SetPassword(PW)
oUser.SetInfo
Set oUser = Nothing
SetPW = True
Else
SetPW = False
End If
End Function 'SetPW"
At one domain it works fine, but in 3 other domains I get the error:
Genereal protection error - 80070005
in the "Call oUser.SetPassword(PW)"-line.
What is generating this error ? Is it any security settings in AD ?
Any help or suggestions are very appreciated.
Thanks.
Hans Peder Nielsen
DK