To read the userAccountControl attribute for users using Active Directory Users and Computers, follow these steps:
- Open Active Directory Users and Computers (dsa.msc).
- In the View menu, enable Advanced Features.
- Perform one of these series of actions:
- In the left navigation pane, navigate to the OU or container where the user object resides.
- In the main pane, select the user object.
- From the Action menu, select Find…. In the Name field, type the name of the user object and press Enter. From the list of Search results:, select the user object.
- Right-click the user object and select Properties from the list.
- Navigate to the Attribute Editor tab.
- In the list of Attributes:, scroll down until ...