Export (0) Print
Expand All

Enabling and Disabling a User Account

Updated: February 28, 2009

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.

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

Enable-ADAccount -Identity SaraDavis

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

Disable-ADAccount -Identity SaraDavis

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft