Reset-ComputerMachinePassword

NAME
    Reset-ComputerMachinePassword

SYNOPSIS
    Resets the machine account password for the computer.

SYNTAX
    Reset-ComputerMachinePassword [-Server <string>] [-Confirm] [-WhatIf] [<CommonParameters>]

DESCRIPTION
    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.

PARAMETERS
    -Server <string>
        Specifies 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.

        Required?                    false
        Position?                    named
        Default value                None
        Accept pipeline input?     false
        Accept wildcard characters? false

    -Confirm [<SwitchParameter>]
        Prompts you for confirmation before executing the command.

        Required?                    false
        Position?                    named
        Default value
        Accept pipeline input?     false
        Accept wildcard characters? false

    -WhatIf [<SwitchParameter>]
        Describes what would happen if you executed the command without actually executing the command.

        Required?                    false
        Position?                    named
        Default value
        Accept pipeline input?     false
        Accept wildcard characters? false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, type,
        “Get-Help about_CommonParameters“.

INPUTS
    None
        You cannot pipe input to this cmdlet.

OUTPUTS
    None
        This cmdlet does not generate any output.

NOTES

    ————————– EXAMPLE 1 ————————–

    C:\PS>Reset-ComputerMachinePassword

    Description
    ———–
    This command resets the machine password for the local computer. The command runs with the credentials of the current user.

    ————————– EXAMPLE 2 ————————–

    C:\PS>Reset-ComputerMachinePassword -Server DC01

    Description
    ———–
    This command resets the machine password of the local computer using the DC01 domain controller.

    ————————– EXAMPLE 3 ————————–

    C:\PS>Invoke-Command -computername Server01 -scriptblock {Reset-ComputerMachinePassword}

    Description
    ———–
    This command uses the Invoke-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.

RELATED LINKS
    Online version: http://go.microsoft.com/fwlink/?LinkID=135252