Login | |
|
 |
Enabling the User must change password at next logon Op... - 11/29/2005 1:25:59 AM
|
|
 |
|
| |
Benoit.B
Posts: 1
Score: 0
Joined: 11/28/2005
Status: offline
|
Hi ! I'm French and i have a problem, very important for me. I'm a novice in VBscript and i would like make a program in VBScript to enable the User must change password at next logon Option in a Active Directory envrionnement. My AD's name is: benoit.net My user is: test My OU are: BandC => FRSRN => Traning BandC FRSRN Training User test is in Training. I try to make this program since several days, and it's very difficult for me. At the moment, my program is: ---------------------------------------------------------------------------------------------- Const ADS_UF_PASSWORD_EXPIRED = -1 Win2KLogonDomain = "@benoit.net" Sub PassWord(UserName) Set objUser = GetObject _ ("LDAP://CN=test,OU=Training,DC=benoit,DC=net") objUser.Put "pwdLastSet", 0 objUser.SetInfo End Sub -------------------------------------------------------------------------------------------- But, it's wrong, no result in properties's user. What is the problem please ? I don't understand. My variable is wrong ? bad declaration ? My declaration of AD is bad too ? Thank you very much for your help ! Regards, Benoît
|
|
| |
|
|
|
|
|