API Reference
Command
Reset-ADXComputerPassword
Resets an Active Directory computer account password.
Examples
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
- Gets or sets computer identity (sAMAccountName, dNSHostName, DN, or name).
- NewPassword SecureString
- Gets or sets the new password as a secure string.
- Domain string
- Gets or sets the optional domain DNS name.
Outputs
ADPlayground.DirectoryMutationResult