userAccountControl 262656: User, smart card required
userAccountControl Decoder: Decode Active Directory userAccountControl values (512, 514, 66048, 532480) into flags, see what each means and how to set it, or build one.
Active Directory keeps an account's switches (disabled, password never expires, trusted for delegation…) as bits added up in
its userAccountControl attribute: 66048 is 65536 + 512. Type a value from ADSI Edit, Get-ADUser -Properties
userAccountControl or a security report to see which flags it holds, what each means and how to change it, or tick flags
below to build one. Flag names and values are from Microsoft's
UserAccountControl property flags.
User, smart card required
262656 = 0x40200 = 512 + 262144
| Value | Flag | Meaning |
|---|---|---|
| 512 0x200 |
NORMAL_ACCOUNT | An ordinary user account. Every user has it; 512 alone is a plain, enabled user. |
| 262144 0x40000 |
SMARTCARD_REQUIRED | Interactive sign-in needs a smart card. The password is replaced by a random one when this is set. Active Directory Users and Computers: "Smart card is required for interactive logon" PowerShell: Set-ADUser -SmartcardLogonRequired $true |
Find accounts like this
| Exactly this value | Get-ADObject -LDAPFilter "(userAccountControl=262656)" -Properties userAccountControl |
|---|---|
| Users with these flags | Get-ADUser -LDAPFilter "(userAccountControl:1.2.840.113556.1.4.803:=262144)" |
| LDAP filter | (userAccountControl:1.2.840.113556.1.4.803:=262144) |