May 2019
Intermediate to advanced
620 pages
21h 41m
English
To set the userAccountControl attribute for users using Windows PowerShell, use the following lines of PowerShell on a system with the Active Directory module for Windows PowerShell. Each of the following lines represents setting one of the bits in the userAccountControl attribute for user objects:
Import-Module ActiveDirectorySet-ADAccountControl -Identity User -Enable $falseSet-ADAccountControl -Identity User -HomedirRequired $trueSet-ADAccountControl -Identity User -PasswordNotRequired $trueSet-ADAccountControl -Identity User -CannotChangePassword $trueSet-ADAccountControl -Identity User -AllowReversiblePasswordEncryption $trueSet-ADAccountControl -Identity User -PasswordNeverExpires $trueSet-ADAccountControl -Identity ...
Read now
Unlock full access