Re: Err got when update pwd in Active directory
- From: "happybubble" <kang_feng_111@xxxxxxxxxxx>
- Date: 1 Mar 2006 19:24:26 -0800
Thanks for replay, Jorge.
Here is the main part of the code:
Set objUser =
GetObject("LDAP://CN=MyAccount,OU=Controlled,OU=Functional,OU=Com1
Users,DC=Com1,DC=Com2")
'GENERATE A PASSWORD
strTempPassword = "AgecjAjs"
'SET THE ACCOUNT ACTIVE VIA ADSI
objUser.IsAccountLocked = 0
'SET THE ACCOUNT PASSWORD TO THE TEMPORARY PASSWORD
objUser.SetPassword strTempPassword
'SET THE ACCOUNT TO RESET WITHIN 24 HOURS
objUser.AccountExpirationDate = dteExpire
'COMMIT THE ADSI CHANGES
objUser.SetInfo
Can someone give me any suggestion?
.
- Follow-Ups:
- Re: Err got when update pwd in Active directory
- From: Brandon McCombs
- Re: Err got when update pwd in Active directory
- References:
- Err got when update pwd in Active directory
- From: happybubble
- Re: Err got when update pwd in Active directory
- From: Jorge de Almeida Pinto [MVP]
- Err got when update pwd in Active directory
- Prev by Date: Re: Rename / Reorganise Domain
- Next by Date: Re: Ready to Pass the PMP Exam?
- Previous by thread: Re: Err got when update pwd in Active directory
- Next by thread: Re: Err got when update pwd in Active directory
- Index(es):
Relevant Pages
|