To set the userAccountControl attribute for users using ADSI Edit, follow these steps:
- Open ADSI Edit (adsiedit.msc).
- Right-click the ADSI Edit text in the left navigation pane and select Connect to… from the menu.
- Click OK to accept connecting to the Default Naming Context.
- In the left navigation pane, expand the Default Naming Context.
- In the left navigation pane, expand the distinctive name of the domain.
- In the left navigation pane, expand the container or OU (structure) where the user object resides.
- In the main pane, select the user object.
- Next, right-click the user object and select Properties from the menu.
- In the list of Attributes, scroll down to the userAccountControl attribute.
- Select it.
- Click the Edit button: ...