什麼是WinRM?
WinRM = Windows Remote Management, Windows Remote Management (WinRM) is the Microsoft implementation of WS-Management Protocol, a standard Simple Object Access Protocol (SOAP)-based, firewall-friendly protocol that allows hardware and operating systems, from different vendors, to interoperate.
The WS-Management protocol specification provides a common way for systems to access and exchange management information across an IT infrastructure. WinRM and Intelligent Platform Management Interface (IPMI), along with the Event Collector are components of the Windows Hardware Management features.
參考官方文檔:https://docs.microsoft.com/en-us/windows/desktop/winrm/portal
WinRM2.0默認端口5985(HTTP端口)或5986(HTTPS端口)。
如何開啓WinRM?
以管理員權限運行PowerShell,然後輸入以下命令:
Enable-PSRemoting cmdlet
以管理員權限運行下面的命令,查看winrm監聽信息:
winrm e winrm/config/listener