PS>
$cred = Get-Credential domain.sample.com;
Reset-ComputerMachinePassword -Credential $cred -Server 192.168.primary-domain-controller.ipaddress;
PS>
$cred = Get-Credential domain.sample.com;
Reset-ComputerMachinePassword -Credential $cred -Server 192.168.primary-domain-controller.ipaddress;
转载于:https://www.cnblogs.com/lionetchen/p/7227697.html