netdom reset computer account
A: To reset a computer account's Active Directory (AD) password from the command line, you can use Windows PowerShell or Netdom.exe. To reset the computer password on your local machine using PowerShell, you must use the Reset-ComputerMachinePassword cmdlet.