Using ADSI Edit

To set the userAccountControl attribute for users using ADSI Edit, follow these steps:

  1. Open ADSI Edit (adsiedit.msc).
  2. Right-click the ADSI Edit text in the left navigation pane and select Connect to… from the menu.
  3. Click OK to accept connecting to the Default Naming Context.
  4. In the left navigation pane, expand the Default Naming Context.
  5. In the left navigation pane, expand the distinctive name of the domain.
  6. In the left navigation pane, expand the container or OU (structure) where the user object resides.
  7. In the main pane, select the user object.
  8. Next, right-click the user object and select Properties from the menu.
  9. In the list of Attributes, scroll down to the userAccountControl attribute.
  10. Select it.
  1. Click the Edit button: ...

Get Active Directory Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.