服務設定錯誤

Microsoft.Windows.Server.10.0.OperatingSystem.ServiceMisconfigured.Alert (Rule)

偵測到服務設定錯誤。

Knowledge Base article:

摘要

以上每個事件都表示服務的設定不正確,而且服務可能無法正常啟動。 如果發生下列任何一個「服務控制管理員」事件,則會產生此警示:

原因

服務控制管理員已產生事件,指出由於服務具有無效的設定 (例如服務與其他服務有循環依存性) 因此無法啟動。

解決方式

若要解決此問題,請執行下列步驟。

7015:若要解決此問題,請變更事件訊息文字中指出的開機啟動或系統啟動驅動程式服務的依存性。 若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。 若要列出服務的依存服務並修改依存性:

7017:若要解決此問題,請移除循環依存性。 若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。 若要列出服務的依存服務或服務群組,並移除循環依存性:

7018:若要解決此問題,請移除循環依存性。 若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。 若要列出服務的依存服務並移除循環依存性:

7019:若要解決此問題,請移除循環依存性。 若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。 若要列出服務的依存服務或服務群組,並移除循環依存性:

7020:若要解決此問題,請移除循環依存性。 若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。 若要列出服務的依存服務或服務群組,並移除循環依存性:

Element properties:

TargetMicrosoft.Windows.Server.10.0.OperatingSystem
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
服務設定錯誤
{0}
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.Server.10.0.OperatingSystem.ServiceMisconfigured.Alert" Enabled="true" Target="ServervNext!Microsoft.Windows.Server.10.0.OperatingSystem" ConfirmDelivery="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventSourceName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Service Control Manager</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7015</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7017</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7018</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7019</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7020</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.10.0.OperatingSystem.ServiceMisconfigured.Alert.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>