Set-ADAccountPasswordIT technician command center
PowerShell · Active Directory

Set-ADAccountPassword

Reset an Active Directory password.

Copy-ready commandSet-ADAccountPassword
Set-ADAccountPassword jsmith -Reset -NewPassword (Read-Host -AsSecureString)
Production warning

Test write operations in a non-production environment first.

Requirements and permissions

Requirements
RSAT ActiveDirectory module
Permissions
Domain permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Reset an Active Directory password.

Set-ADAccountPassword jsmith -Reset -NewPassword (Read-Host -AsSecureString)

Common errors

Command not found

Confirm RSAT ActiveDirectory module is installed and available in your current shell.