Modifies the password of an Active Directory account
Functions: | |
Type: | |
Toolsets: |
$new = ConvertTo-SecureString 'NewPassword1!' -A -F
Set-ADAccountPassword -Identity MyAccount -Reset -NewPassword $new
Usecase
ActiveDirectory
$old = ConvertTo-SecureString 'OldPassword1!' -A -F
$new = ConvertTo-SecureString 'NewPassword1!' -A -F
Set-ADAccountPassword -Identity MyAccount -OldPassword $old -NewPassword $new
Usecase
ActiveDirectory