Account Lockout and Password Policies
This topic explains how to use the Active Directory module for Windows PowerShell to view the account lockout and password policies of users.
Example
The following example demonstrates how to view the account lockout and password policy of the user SaraDavis:
Get-ADUserResultantPasswordPolicy -Identity SaraDavis
Get-ADUserResultantPasswordPolicy -Identity SaraDavis
Additional information
For a full explanation of the parameters that you can pass to Get-ADUserResultantPasswordPolicy, at the Active Directory module command prompt, type Get-Help Get-ADUserResultantPasswordPolicy –detailed, and then press ENTER.
Enabling and Disabling a User Account
This topic explains how to use the Active Directory module for Windows PowerShell to enable and disable user accounts.
Example 1
The following example demonstrates how to enable the user account SaraDavis in the Fabrikam.com domain:
Enable-ADAccount -Identity SaraDavis
Enable-ADAccount -Identity SaraDavis
Example 2
The following example demonstrates how to disable the user account SaraDavis in the Fabrikam.com domain:
Disable-ADAccount -Identity SaraDavis
Disable-ADAccount -Identity SaraDavis
Additional information
For a full explanation of the parameters that you can pass to Enable-ADAccount or Disable-ADAccount, at the Active Directory module command prompt, type Get-Help Enable-ADAccount –detailed or Get-Help Disable-ADAccount –detailed, and then press ENTER.
No comments:
Post a Comment