Managing userAccountControl
Many user objects' settings can be controlled using the userAccountControl
attribute.
Getting ready
To set the userAccountControl
attribute for users, sign in to a domain controller or a member server and/or device with RSAT for Active Directory Domain Services installed.
Sign in with an account that is a member of the Domain Admins group.
How to do it...
The userAccountControl
attribute can be managed in the following two ways:
- Reading the
userAccountControl
attribute - Setting the
userAccountControl
attribute
Reading the userAccountControl attribute
There are three ways to read the userAccountControl
attribute for users:
- Using Active Directory Users and Computers
- Using the Active Directory Administrative Center
- Using Windows PowerShell
Using Active Directory Users and Computers
To read the userAccountControl
attribute for users using Active Directory Users and Computers, follow these steps...