.. / Set-ADAccountPassword

Modifies the password of an Active Directory account


Functions:
Type:
Toolsets:

Domain

Reset password

$new = ConvertTo-SecureString 'NewPassword1!' -A -F
Set-ADAccountPassword -Identity MyAccount -Reset -NewPassword $new
Usecase
Force reset a user’s password to obtain access to the account

Comments
PowerShell Module: ActiveDirectory

Mitre Att&ck
T1531

Update password

$old = ConvertTo-SecureString 'OldPassword1!' -A -F
$new = ConvertTo-SecureString 'NewPassword1!' -A -F
Set-ADAccountPassword -Identity MyAccount -OldPassword $old -NewPassword $new
Usecase
Update a user’s password

Comments
PowerShell Module: ActiveDirectory

Mitre Att&ck
T1531




Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)