ADSetUserAccountControl (Opus Funktion)

ADSetUserAccountControl (Opus Funktion)

Beschreibung

Setzt einen neuen Wert.
Sets the userAccountControl attribute on the specified AD user to the given value.

Argumente

Name

Typ

Beschreibung

Name

Typ

Beschreibung

 UserDistinguishedName

string

LDAP distinguished name of the user account

 Value

integer

Wert bestehend aus folgenden Bitwerten

UF_ACCOUNTDISABLE = 0x0002 UF_PASSWD_NOTREQD = 0x0020 UF_PASSWD_CANT_CHANGE = 0x0040 UF_NORMAL_ACCOUNT = 0x0200 UF_DONT_EXPIRE_PASSWD = 0x10000 UF_SMARTCARD_REQUIRED = 0x40000 UF_PASSWORD_EXPIRED = 0x800000

Rückgabewert void

nichts

Beispiel

ADSetUserAccountControl(Ls_UserObjectPath, ADGetUserAccountControl(Ls_UserObjectPath) | 0x800000);

ADSetUserAccountControl(Ls_UserObjectPath, ADGetUserAccountControl(Ls_UserObjectPath) | 0x800000);

Siehe auch

---