Skip to main content

Update account options

Turn account options on or off: enabled, password never expires, and must change password at next sign-in; empty options stay as they are.

Command in the Active Directory toolkit · id ooa.active_directory/update_account_options · 11 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
UsernameStringYesLogon name (sAMAccountName or UPN), full name, or distinguished name.
EnabledBooleanNoEnable (true) or disable (false) the account.
Password never expiresBooleanNoWhether the password never expires.
Must change passwordBooleanNoWhether a password change is required at next sign-in.
SessionStringNoadSession name.
Smart card requiredBooleanNoWhether a smart card is required for interactive sign-in.
Not delegatedBooleanNoWhether the account is sensitive and cannot be delegated.
Password not requiredBooleanNoWhether the account may have an empty password (normally false).
No kerberos preauthBooleanNoWhether Kerberos pre-authentication is not required (normally false).
Account expiresStringNoLast day the account can be used (yyyy-MM-dd, the account ends at the start of the next day UTC), or never.
Cannot change passwordBooleanNoWhether the user is stopped from changing their own password (Active Directory only; changes the object's permissions).

Outputs​

OutputTypeWhat it is
user_account_controlNumberThe account control flags after the change.