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

Setzt einen neuen Wert.

### Argumente

| Name | Typ | Beschreibung |
| --- | --- | --- |
|  | [string](../../standard-datentypen/string.md) | User Distinguished Name |
|  | [integer](../../standard-datentypen/integer.md) | `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](../../standard-datentypen/void.md)

nichts

### Beispiel

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

### Siehe auch

---
