|
AFAIK these are mutually exclusive. Why
would you need both? If you want to force at least one password change and then
have it never expire you could create the account with the “User Must
Change password at next logon” property to on and then have your script
check the state of the Change password property and if it’s clear then
set the Password never sets flag. You certainly can’t , IIRC, create
or set both at the same time. Regards Peter Johnson From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernandez Rego, Ramon Hi,
Is
there any possibility of setting both properties? "Password
never expires" and "User must change password at next logon"
I
tried with this script, but i can't: ------------------------------
strOU
= "cn=test,ou=usuarios,ou=XXXXXXX" Set
objCommand = CreateObject("ADODB.Command") While
Not objRecordSet.EOF objConnection.Close
Thanks,
Moncho
|
Title: Set UserAccountControl
- RE: [ActiveDir] Set UserAccountControl Peter Johnson
- RE: [ActiveDir] Set UserAccountControl Fernandez Rego, Ramon
- RE: [ActiveDir] Set UserAccountControl joe
- RE: [ActiveDir] Set UserAccountControl Peter Johnson
- RE: [ActiveDir] Set UserAccountControl Dan Holme
- RE: [ActiveDir] Set UserAccountControl Fernandez Rego, Ramon
