今天在做评分程序,捣鼓了一上午,终于搞出来了这个Win08R2做服务器,Win10来控制的这么个WinRM的链路
因为QemuAgent在08R2上安装不了,所以就导致了需要一个跳板机来连接
准备
Win2008R2
- Powershell V2
Win10
- Powershell V5.1+
步骤
- 确保Win08和Win10连通性
启动WinRM服务,确保远程功能正常
分别在两台机器的Powershell上执行命令Set-Service WinRM -StartupType Automatic -Status Running
向两台机器添加远控白名单
分别在两台机器的Powershell上执行命令Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*"
快速开启Win08的WinRM远控功能
在Win08上执行winrm quickconfig
使用Win10进行连接
Enter-PSSession <对端IP> -Credential <用户名>