伺服器服務設定健全狀況

Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfiguration.Collection (Rule)

Knowledge Base article:

摘要

在服務嘗試以無效的設定來啟動時,此規則就會產生警示。 在此情況下,警示具有警告等級的嚴重性,表示雖然偵測到服務的設定無效,但服務仍能順利啟動。 但是,服務可能無法以所需的設定來執行。

原因

如果登錄中的服務設定參數無效,就會產生此警示。 設定無效的可能原因如下:

解決方式

解決此警示的第一個步驟是確定哪一項服務產生此警示。

若要確定服務的名稱,請參閱警示的描述。 此描述包含下列資訊: 伺服器的登錄機碼 %2 其名為 %1 的數值無效,該數值會被忽略。

以上所列事件的 %1 與 %2 參數在實際的警示描述中將被填入值。 第二個參數 (%2) 的第一個部分是服務名稱。

確定服務名稱之後,可透過第一個參數 (%1) 來確定未正確設定的參數。

知道服務與參數名稱之後,支援工程師應嘗試確定能否透過應用程式提供的使用者介面,來修改服務設定參數。 如果可以的話,這將是修正設定的最佳方法。 在某些情況下,必須先將設定變更為其他設定,並更新為所需的設定後,才能設定正確的設定。

如果沒有提供使用者介面,支援工程師可選擇直接修改相關參數。 此操作必須在下列登錄位置中執行,而且需要具備參數設定選項的進階知識。

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\%ServiceName\Parameters\%Parameter Name%

如果這些選項無法協助您解決問題,可能需要連絡應用程式廠商以取得支援。

Element properties:

TargetMicrosoft.Windows.Server.2008.OperatingSystem
CategoryEventCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
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.2008.OperatingSystem.ServerServiceConfiguration.Collection" Enabled="false" Target="Server2008!Microsoft.Windows.Server.2008.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>server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2506</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfiguration.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>