winrm安装后启用命令

如果你正使用Windows 2008 Server,WinRM已经被安装但并未启用。 这是一个很好的安全预防措施。 在你机器上启用WinRM的简单方法就是在CMD中运行:
  winrm enumerate winrm/config/listener
  如果没有得到返回信息,WinRM未正常运行。 配置WinRM自动启动并允许远程访问,可像以下这样使用winrm quickconfig命令 :
  C:\Users\Administrator> winrm quickconfig
  WinRM is not set up to allow remote access to this machine for management.
  The following changes must be made:
  Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
  Make these changes [y/n]? y
  WinRM has been updated for remote management.
  Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
  C:\Users\Administrator>
  Once I configured the quickconfig, I reran the enumeration command with these results:
  C:\Users\Administrator> winrm e winrm/config/listener
  Listener
  Address = *
  Transport = HTTP
  Port = 80
  Hostname
  Enabled = true
  URLPrefix = wsman
  CertificateThumbprint
  ListeningOn = 10.253.15.98, 127.0.0.1, ::1, fe80::5efe:10.253.15.98%11, fe80::9583:2148:e1ef:6444%10
  C:\Users\Administrator>
  从这里,我们可以知道WinRM已经启动。
  考试大提示:如果你想在任何时间禁用WinRM,你可以使用这样的命令:
  winrm delete winrm/config/listener?IPAdress=*+Transport=HTTP
  为了使用WinRM,与之连接的主机必需与WinRM主机是相同域的成员。 如果情况不是这样,我建议你参考文章“Remotely managing your Server Core using WinRM and WinRS里描述的不同安全情况。

你可能感兴趣的:(windows,listener,machine,Management,following)