Alerta por error al crear espacio de ejecución de PowerShell para la secuencia de comandos de Power Shell

Microsoft.SystemCenter.PowerShellModule.AlertOnFailedCreateRunspace (Rule)

Genera una alerta cuando una regla o monitor intenta ejecutar una secuencia de comandos de Power Shell y el espacio de ejecución de Power Shell no se puede iniciar.

Knowledge Base article:

Resumen

El servicio de mantenimiento de administración de System Center intentaba ejecutar una secuencia de comandos de PowerShell y no pudo crear el espacio de ejecución de PowerShell.

Esto puede afectar a la supervisión o detección.

Causas

Esto puede deberse a:

Soluciones

El contexto y la descripción de la alerta tiene información que indica qué regla o monitor ha dado error. El siguiente vínculo mostrará todos los eventos que indiquen un error en la ejecución de la secuencia de comandos de PowerShell:

Ver eventos de PowerShell

Después de revisar el error en el contexto, compruebe:

Este PowerShell se ha instalado correctamente en el equipo.

Que no se haya usado el equipo por encima de su capacidad.

Y por último, compruebe que la cuenta de acción tiene acceso suficiente para ejecutar PowerShell.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
El espacio de ejecución de Power Shell no se pudo iniciar
{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.AlertOnFailedCreateRunspace" 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">22400</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.AlertOnFailedCreateRunspace.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Params/Param[1]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>