This is the built-in help made by Microsoft for the command 'Reset-ComputerMachinePassword', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Resets the machine account password for the computer.
Reset-ComputerMachinePassword [-Credential [<PSCredential>]] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
[<System.String>]] [-Server [<String>]] [-Confirm] [-WhatIf] [<CommonParameters>]
The Reset-ComputerMachinePassword cmdlet 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.
<
Online Version: http://go.microsoft.com/fwlink/p/?linkid=293903
<
-------------------------- EXAMPLE 1 --------------------------
PS C:\>Reset-ComputerMachinePassword
This command resets the machine password for the local computer. The command runs with the credentials of the current user.
-------------------------- EXAMPLE 2 --------------------------
PS C:\>Reset-ComputerMachinePassword -Server DC01 -Credential Domain01\Admin01
This command resets the machine password of the local computer using the DC01 domain controller. It uses the Credential parameter to specify a user account that has
permission to reset a machine password in the domain.
-------------------------- EXAMPLE 3 --------------------------
PS C:\>Invoke-Command -ComputerName Server01 -ScriptBlock {Reset-ComputerMachinePassword}
This command uses theInvoke-Command cmdlet to run a Reset-ComputerMachinePassword command on the Server01 remote computer.
For more information about remote commands in Windows PowerShell, see about_Remote and Invoke-Command.