>Does somebody has examples or links where I can find How to create a program to change a user's password. I think it must be done by ADSI.
>
>Thanks
In VFP:
ouser = getobject('WinNT://Machine/UserName,user')
ouser.ChangePassword('oldpassword','newpassword')
In VB (after adding the Active DS Type library to the project references):
Dim ouser As IADsUser
Set ouser = GetObject("WinNT://Machine/UserName,user")
ouser.ChangePassword "oldpassword", "newpassword"
This works if you are the user or if you have adminsitrative rights to the machine/domain in question.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao