Error Power Shell Run space Failed to start in System Center 2012 — Operations Manager

Error Power Shell Run space Failed to start in System Center 2012 — Operations Manager

scom

scom

Management Pack Version – 7.0.9538.0

Rule or Monitor Name – Alert on Failure to Create PowerShell Run space for Power Shell Script

Rule or Monitor Notes – none

Issue

Failed to run the PowerShell script due to exception below, this workflow will be unloaded.

System.NullReferenceException: Object reference not set to an instance of an object.
at System.Management.Automation.PSSnapInReader.ReadEnginePSSnapIns()
at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault()
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceConfigurationContainer.
GetRunspaceConfiguration(InitialSessionStateEntryCollection`1 variableEntries)
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceController.Initialize
(RunspaceConfigurationContainer configuration, InitialSessionStateEntryCollection`1 variableEntries)
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceManager.
DeliverRunspaceThreadProc(Object appDomainObject)

Resolution

I’ve spent a day investigating this. Everything is working fine, powershell is fully functional.

Health Service cache flush resolved the issue:

 Stop System Center Management service
Delete all contents from \Health Service State
Start System Center Management service 

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

я в гугл