---
title: "ADGetUserAccountControl (Opus Funktion)"
---
### Beschreibung

Gibt den aktuellen Wert zurück.

### Argumente

| Name | Typ | Beschreibung |
| --- | --- | --- |
|  | [string](../../standard-datentypen/string.md) | User Distinguished Name |

### Rückgabewert [integer](../../standard-datentypen/integer.md)

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
```

### Beispiel

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

### Siehe auch

---
