서비스가 예상하지 못한 상태가 됨

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

서비스가 예상하지 못한 상태가 되었습니다.

Knowledge Base article:

요약

이 규칙은 서비스 제어 관리자가 잘못된 구성으로 서비스가 시작된 것을 발견할 때 경고를 생성합니다. 서비스 제어 관리자가 잘못된 구성을 발견했더라도 서비스는 여전히 시작된다는 점에 유의하십시오.

서비스가 예상대로 실행되지 않을 수 있으며 예기치 않은 방식으로 작동할 수도 있습니다. 또한 문제를 해결할 때까지 서비스를 다시 시작하지 못할 수 있습니다.

샘플 이벤트:

이 규칙은 다음 이벤트가 발생하고 시스템 이벤트 로그에 기록될 때마다 경고를 생성합니다.

%1 서비스가 대화형 서비스로 표시되어 있습니다 그러나 시스템이 대화형 서비스를 허용하지 않습니다. 이 서비스가 제대로 작동하지 않을 수도 있습니다.

서비스 제어 관리자에서 %1 서비스의 구성 변경 내용을 취소하는 동안 오류가 발생했습니다. 서비스의 %2이(가) 현재 예상할 수 없는 상태에 있습니다. 이 구성을 수정하지 않으면 %1 서비스를 다시 시작할 수 없거나 다른 오류가 발생할 수도 있습니다. 서비스가 올바르게 구성되었는지 확인하려면 MMC에서 서비스 스냅인을 사용하세요.

원인

이 경고는 다음 조건이 발생할 때마다 생성됩니다.

해결 방법

이 경고에는 두 가지 가능한 해결 방법이 있습니다. 경고를 생성한 이벤트를 참조하여 적절한 해결 단계를 선택하십시오.

이벤트 ID: 7030

이 경고를 해결하려면 관련 전문가나 공급업체에 문의하여 바탕 화면에서 서비스를 대화형으로 실행해야 하는지 확인하십시오. 그렇지 않으면 다음 단계를 수행하십시오.

서비스를 대화형으로 실행해야 하는 경우 “서비스와 데스크톱 상호 작용 허용” 시스템 정책을 변경해야 합니다. 이렇게 하려면 다음 단계를 따르십시오.

HKLM\System\CCC\Control\Windows

0 - 사용

1 - 사용 안 함

이벤트 ID: 7037

다음을 수행하여 이 경고를 해결하십시오.

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.ServiceEnteredUnpredictableState.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>7037</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>7030</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.ServiceEnteredUnpredictableState.Alert.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>