$domain = “FQDN” $user = “user account with join domain privilage” $username = “$domain\$user”

Reset-ComputerMachinePassword -Credential $username -Server ADServer

Restart-Computer