CmdID / PowerShell / Cmdlets / Reset
Reset-ComputerMachinePassword
Resets the machine account password for the computer. PowerShell reference
From the PowerShell reference 4 parameters
What it does
Resets the machine account password for the computer. The Reset-ComputerMachinePassword cmdlet changes the computer account password that the computers use to authenticate to the domain controllers in the domain. You can use it to reset the password of the local computer.
Reset-ComputerMachinePassword [-Server <String>] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
Reset the password for the local computer
Reset-ComputerMachinePasswordIdentifyReset the password for the local computer by using a specified domain controller
Reset-ComputerMachinePassword -Server "DC01" -Credential Domain01\Admin01IdentifyReset the password on a remote computer
$cred = Get-Credential
Invoke-Command -ComputerName "Server01" -ScriptBlock {
Reset-ComputerMachinePassword -Credential $Using:cred
}IdentifyIts page in the reference: Reset-ComputerMachinePassword.
Parameters
-CredentialSpecifies a user account that has permission to perform this action. The default is the current user.
This parameter was introduced in Windows PowerShell 3.0.-ServerSpecifies the name of a domain controller to use when this cmdlet sets the computer account password.
This parameter is optional. If you omit this parameter, a domain controller is chosen to service the command.-ConfirmPrompts you for confirmation before running the cmdlet.-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.