Set-ADUser
CautionModify AD users
Set-ADUser <user> -Enabled $true
Enables/disables or edits attributes of an AD user.
Examples
Unlock-ADAccount -Identity jdoeUnlock a locked 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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store