Preventing a User Password Change
This topic explains how to use the Active Directory module for Windows PowerShell to prevent a user from changing his or her password.
Example
The following example demonstrates how to prevent the user JaneDow from changing her password.
Set-ADAccountControl -Identity JaneDow -CannotChangePassword $true
Set-ADAccountControl -Identity JaneDow -CannotChangePassword $true
Additional information
You can use the following parameters when you set many of the common values that are associated with user account control in Active Directory Domain Services (AD DS).
- -AllowReversiblePasswordEncryption
- -TrustedForDelegation
- -PasswordNeverExpires
- -AccountNotDelegated
- -DoesNotRequirePreAuth
- -TrustedToAuthForDelegation
- -UseDESKeyOnly
- -PasswordNotRequired
- -CannotChangePassword
- -Enabled
- -HomedirRequired
- -MNSLogonAccount
No comments:
Post a Comment