Reset the machine account password for the computer.

      Reset-ComputerMachinePassword [-Server string] [-Confirm] [-WhatIf] [CommonParameters]

   -Server string
The name of a domain controller to use when setting the machine account password.
This parameter is optional. If you omit this parameter, a domain controller is chosen to service the command. -Confirm Prompt for confirmation before executing the command. -WhatIf Describe what would happen if you executed the command without actually executing it. CommonParameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer -OutVariable.

Reset-ComputerMachinePassword changes the machine 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 the machine password for the local computer using the credentials of the current user:

PS C:> Reset-ComputerMachinePassword

Reset the machine password of the local computer using the DC64 domain controller:

PS C:> Reset-ComputerMachinePassword -server DC64

Use Invoke-Command to run a Reset-ComputerMachinePassword command on the Server64 remote computer.

PS C:> invoke-command -computername Server64 -scriptblock {reset-computermachinepassword}

“Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them. The longer we dwell on our misfortunes, the greater is their power to harm us” ~ Voltaire


Restart-Computer - Restart the operating system on a computer

Copyright © 1999-2018
Some rights reserved