【跪求】winrm配置问题

进击的mrsky 2018-06-19 12:59:52
各位大佬好,小弟准备利用python的pywinrm模块,远程管理windows server,但是在服务器上设置winrm的时候遇到了如下问题,望各位大佬指点迷津:
# 配置 winrm 服务器 auth
PS C:\Users\Administrator> winrm set winrm/config/service/auth @{Basic="true"}
错误: Invalid use of command line. Type "winrm -?" for help.

# 配置 winrm service加密方式为允许非加密:
PS C:\Users\Administrator> winrm set winrm/config/service @{AllowUnencrypted="true"}
错误: Invalid use of command line. Type "winrm -?" for help.
...全文
1112 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
进击的mrsky 2018-07-12
  • 打赏
  • 举报
回复
引用 2 楼 huochaish 的回复:
表达式缺少了 ' '符号
正确的应该为winrm set winrm/config/service/auth '@{Basic="true"}'


虽然不是这个问题造成的,但是谢谢你的回答,我之前是使用powershell执行的命令,换成CMD就执行成功了
huochaish 2018-07-06
  • 打赏
  • 举报
回复
表达式缺少了 ' '符号
正确的应该为winrm set winrm/config/service/auth '@{Basic="true"}'

6,850

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧