1:$credential=get-credentialide
2:Reset-ComputerMachinePassword -Credential $credentialblog
3:重启计算机便可解决计算机脱域问题get