Set-ADUser
CautionModify AD users
Set-ADUser <user> -Enabled $true
Enables/disables or edits attributes of an AD user.
Examples
Set-ADUser -Identity jdoe -Enabled $falseDisable the account
Syntax
Set-ADUser <user> [-Enabled $true|$false] [-attr value]
Before you run it
Edits live AD; verify the target.
Related commands
- Get-ADUserQuery AD users
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store