配置WMF3.0中的WinRM

简介:

可以参照下面这个修改WinRM兼容性实例的步骤作为模版来配置WinRM.

关闭WinRM新旧版本兼容性事例:

(1)在powershell中输入“ls wsman:\localhost\service”,可查看有哪些属性可以修改;     wKiom1NKa1Dz_9eCAAIZTkAJkCA997.jpg

(2)我们先查看WFM3.0中WinRM默认的兼容性:wKiom1NKZ-CgiGc5AAFvD9EmuJY869.jpg

(3)输入“set-item wsman:\localhost\serivce\enablecompatibilityhttplistener false”;

wKioL1NKZ7qTD4uHAAID96TrF1k489.jpg

(4)修改结果如下:wKioL1NKayeQAD6vAADg6Rkpv8M782.jpg

官方的文档如下:(但是我测试通不过)

Configuring WinRM

The following commands can be used to configure WinRM from the PowerShell command prompt.

  • To enumerate the existing WinRM listeners:

    winrm enumerate winrm/config/listener

  • To enable the "compatibility" HTTP listener on port 80:

    winrm set winrm/config/service @{EnableCompatibilityHttpListener="true"}

  • To enable the "compatibility" HTTPS listener on port 443:

    winrm set winrm/config/service @{EnableCompatibilityHttpsListener="true"}

  • To disable the "compatibility" HTTP listener on port 80:

    winrm set winrm/config/service @{EnableCompatibilityHttpListener="false"}

  • To disable the "compatibility" HTTPS listener on port 443:

    winrm set winrm/config/service @{EnableCompatibilityHttpsListener="false"}

The following Group Policy settings can be used to enable/disable the "compatibility" listeners:

  • Windows Components > Windows Remote Management (WinRM) > WinRM Service > Turn On Compatibility HTTP Listener

  • Windows Components > Windows Remote Management (WinRM) > WinRM Service > Turn On Compatibility HTTPS Listener




本文转自 bannerpei 51CTO博客,原文链接:http://blog.51cto.com/281816327/1394891,如需转载请自行联系原作者

相关文章
|
Windows
Windows系统 services.msc命令详解,Windows命令行查看本地服务
第一步、打开cmd 按下 win 键,输入 cmd 后回车,打开「命令提示符」
1010 0
Windows系统 services.msc命令详解,Windows命令行查看本地服务
|
6月前
CobaltStrike VNC 错误 使用VNC报错 Disconnected from server
CobaltStrike VNC 错误 使用VNC报错 Disconnected from server
133 0
CobaltStrike VNC 错误 使用VNC报错 Disconnected from server
|
8月前
|
安全 网络安全 数据安全/隐私保护
wsl---ssh远程连接、ip映射及服务自启详细配置
在初步体验了wsl后,我们都想通过一些类似xshell的工具来进行连接,因为cmd真的是不太友好。 在多次反复操作后发现,网上很多千篇一律的教程在有些地方,真的是误导像我这种小白,因此,本片文章经历过多次修改以保让我等小白不被带偏。
|
Linux 网络安全
配置 SSH 端口转发,并设置开机启动
SSH 为了降低运维成本,提高可靠性,物理服务器往往都不再部署在本地,IDC 托管成了更多企业的选择。服务器托管在 IDC 后,出于安全的考虑,不会直接开放所有服务器的外部访问,而是使用跳板机,跳板机可以直接从外部访问,而其他服务器只能在登录到跳板机后才能连接得上。
1922 0
|
网络协议 网络安全
|
监控 网络安全 数据安全/隐私保护
|
Ubuntu 数据安全/隐私保护 Windows