>>服务端
Enable-PSRemoting
winrm quickconfig ————这个可能不需要
>>客户端
Set-Item wsman:\localhost\Client\Trustedhosts -value 192.168.159.*
Enter-PSSession -ComputerName 192.168.159.169 –Credential WORKGROUP\Administrator
>>服务端
Enable-PSRemoting
winrm quickconfig ————这个可能不需要
>>客户端
Set-Item wsman:\localhost\Client\Trustedhosts -value 192.168.159.*
Enter-PSSession -ComputerName 192.168.159.169 –Credential WORKGROUP\Administrator
转载于:https://www.cnblogs.com/chenshao/p/10121632.html