TestimoX

API Reference

Command

Reset-ADXComputerPassword

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.DirectoryMutationResult

Resets an Active Directory computer account password.

Examples

Authored help example

Example 1: Preview resetting a broken secure channel password on a server account


$password = ConvertTo-SecureString 'SrvSecure!2026' -AsPlainText -Force
            Reset-ADXComputerPassword -Identity 'srv-app-17$' -Domain 'contoso.com' -NewPassword $password -WhatIf
        

Example 2: Reset a staged workstation password before rejoin


$password = ConvertTo-SecureString 'Workstation!2026' -AsPlainText -Force
            Reset-ADXComputerPassword -Identity 'WS-KRK-102$' -Domain 'contoso.com' -NewPassword $password
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Reset-ADXComputerPassword -Identity <string> -NewPassword <SecureString> [-Domain <string>] [<CommonParameters>]
#

Parameters

Identity string requiredposition: 0pipeline: falsealiases: CommonName, DistinguishedName, DN, DnsHostName, Name, SamAccountName
Gets or sets computer identity (sAMAccountName, dNSHostName, DN, or name).
NewPassword SecureString requiredposition: 1pipeline: false
Gets or sets the new password as a secure string.
Domain string optionalposition: namedpipeline: falsealiases: DomainName
Gets or sets the optional domain DNS name.

Outputs

ADPlayground.DirectoryMutationResult