CmdID

CmdID / PowerShell / Cmdlets / Reset

Reset-ComputerMachinePassword

Resets the machine account password for the computer. PowerShell reference

From the PowerShell reference 4 parameters

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

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-ComputerMachinePasswordIdentify

Reset the password for the local computer by using a specified domain controller

Reset-ComputerMachinePassword -Server "DC01" -Credential Domain01\Admin01Identify

Reset the password on a remote computer

$cred = Get-Credential Invoke-Command -ComputerName "Server01" -ScriptBlock { Reset-ComputerMachinePassword -Credential $Using:cred }Identify

Its page in the reference: Reset-ComputerMachinePassword.

Parameters

4 in the PowerShell reference
-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.