登录Windows服务器, 以管理员身份运行powershell,输入以下命令
    winrm quickconfig -quiet
    winrm set winrm/config/service/auth ‘@{Basic=”true”}’
    winrm set winrm/config/service ‘@{AllowUnencrypted=”true”}’
    Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 100
    Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 300
    Set-item wsman:/localhost/listener/listener*/port 5985

    注: 配置完成后, 可以通过以下命令确认是否配置成功

    winrm enumerate winrm/config/listener