Windows 遠端管理服務健全狀況

Microsoft.Windows.Server.6.2.OperatingSystem.WindowsRemoteManagementServiceHealth (UnitMonitor)

為 Windows 遠端管理監視 Windows 服務的健全狀況

Knowledge Base article:

摘要

Windows 遠端管理 (WinRM) 服務實作了 WS-Management 通訊協定來執行遠端管理。WS-Management 是可用於管理遠端軟體及硬體的標準 Web 服務通訊協定。WinRM 服務會接聽並處理網路上的 WS-Management 要求。您必須使用 winrm.cmd 命令列工具或透過群組原則,為 WinRM 服務設定接聽程式,如此 WinRM 服務才能執行網路接聽工作。WinRM 服務提供 WMI 資料的存取權及事件收集的功能。這項服務必須在執行中,才能執行事件收集及訂閱事件。WinRM 訊息使用 HTTP 及 HTTPS 進行傳輸。WinRM 服務與 IIS 並無依存關係,但會預先設定成與 IIS 並用同一部機器上的同一個連接埠。WinRM 服務會保留 /wsman URL 首碼。為避免與 IIS 發生衝突,系統管理員應確定 IIS 上所代管的網站未使用 /wsman URL 首碼。

原因

服務可能會因許多原因而停止,其中包括:

解決方式

若此服務已停止,您將無法從遠端連線到您的核心伺服器進行管理。如果重新啟動服務的方式無法解決問題,且作業系統無法以標準模式開機,可能需要在安全模式中更新服務的設定。進入安全模式後,應將服務的啟動類型設定為 [自動],且「登入」設定應設為 [本機系統]。

此服務可使用以下工作重新啟動:

啟動 Windows 遠端管理服務

Element properties:

TargetMicrosoft.Windows.Server.6.2.OperatingSystem
Parent MonitorMicrosoft.Windows.Server.6.2.OperatingSystem.CoreServicesRollup
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Windows 遠端管理服務已停止
伺服器 {0} 上的 Windows 遠端管理服務已停止執行
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.6.2.OperatingSystem.WindowsRemoteManagementServiceHealth" Accessibility="Public" Enabled="true" Target="WindowsServer!Microsoft.Windows.Server.6.2.OperatingSystem" ParentMonitorID="Microsoft.Windows.Server.6.2.OperatingSystem.CoreServicesRollup" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.6.2.OperatingSystem.WindowsRemoteManagementServiceHealth.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>WinRM</ServiceName>
</Configuration>
</UnitMonitor>