對要管理的機器執行以下指令進行連線:
Enter-PSSession -ComputerName COMPUTER -Credential USER
Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts * Restart-Service WinRM