Alert dotyczący niepowodzenia przy ładowaniu przystawki powłoki Power Shell

Microsoft.SystemCenter.PowerShellModule.AlertOnFailedLoadSnapIn (Rule)

Generuje alerty w przypadku, gdy zasada lub monitor podejmuje próbę wykonania skryptu powłoki Power Shell, ale załadowanie przystawki powłoki Power Shell jest niemożliwe.

Knowledge Base article:

Podsumowanie

W usłudze System Center Management Health próbowano uruchomić skrypt programu PowerShell, ale nie można było załadować przystawki programu PowerShell.

Może to mieć wpływ na pewne aspekty monitorowania lub odnajdywania.

Przyczyny

Możliwe przyczyny:

Rozwiązania

Opis oraz kontekst alertu zawierają informacje wskazujące, której zasady lub którego monitora dotyczy awaria. Kliknięcie następującego łącza spowoduje wyświetlenie wszystkich zdarzeń wskazujących niepowodzenie uruchomienia skryptu programu PowerShell:

Wyświetl zdarzenia programu PowerShell

Po przejrzeniu błędu w kontekście sprawdź następujące elementy:

Czy pisownia nazwy przystawki jest poprawna w konfiguracji przepływu pracy.

Czy przystawka i jej zależności są poprawnie zainstalowane na komputerze.

Sprawdź też, czy konto akcji ma wystarczające uprawnienia do uzyskania dostępu do przystawki.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Nie można załadować przystawki powłoki Power Shell
{0}
Event LogOperations Manager

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SystemCenter.PowerShellModule.AlertOnFailedLoadSnapIn" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/ManagementGroup/Name$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">22401</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.PowerShellModule.AlertOnFailedLoadSnapIn.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Params/Param[7]$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[8]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>