x

Reset Active Directory machine password

These commands must be run on the workstation. Resetting the local machine’s password will update it locally and also on the specified domain controller. This will fix trust relationship errors on login.

PowerShell

Reset-ComputerMachinePassword -Server domaincontroller -Credential (Get-Credential)

netdom

$cred = (Get-Credential)
# GetNetworkCredential().Password is compatible with PS 5, -AsPlainText is Core
netdom resetpwd /Server:domaincontroller /UserD:$($cred.UserName) /PasswordD:$($cred.GetNetworkCredential().Password)
Left-click: follow link, Right-click: select node, Scroll: zoom
x