Share via


Enabling and Disabling a User Account

Applies To: Windows Server 2008 R2

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

Example 2

The following example demonstrates how to disable the user account SaraDavis in the Fabrikam.com domain:

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.