Power Shell Script failed to run - GetMGAlertsCount.ps1

Our SCOM 2012 R2 is getting the following script error every 45 minutes...

The PowerShell script failed with below exception

System.Management.Automation.PropertyNotFoundException: The property 'Name' cannot be found on this object. Verify that the property exists.At line:57 char:3
+ $firstLvlClass = Get-SCOMClass -Id $firstLvlMember.Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at CallSite.Target(Closure , CallSite , Object )
at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)




Script Name: GetMGAlertsCount.ps1


One or more workflows were affected by this.


Workflow name: ManagementGroupCollectionAlertsCountRule

Instance name: All Management Servers Resource Pool

Instance ID: {4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}

Management group: NCA2

-----------

On the management server seeing corresponding 22406 errors

- System
- Provider
[ Name] Health Service Modules
- EventID 22406
[ Qualifiers] 49152
Level 2
Task 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2015-04-21T18:44:03.000000000Z
EventRecordID 1303964
Channel Operations Manager
Computer PKSWSM001.ad.nca.com
Security
- EventData
NCA2
ManagementGroupCollectionAlertsCountRule
All Management Servers Resource Pool
{4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}
GetMGAlertsCount.ps1
300
System.Management.Automation.PropertyNotFoundException: The property 'Name' cannot be found on this object. Verify that the property exists.At line:57 char:3 + $firstLvlClass = Get-SCOMClass -Id $firstLvlMember.Name + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at CallSite.Target(Closure , CallSite , Object ) at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
System.Management.Automation.PropertyNotFoundException


----------

I'm at a bit of a loss to troubleshoot this error.  I cannot find the "GetMGAlertsCount.ps1"  script to execute manually and don't have much else I can find to troubleshoot.

Thanks for your help!

April 21st, 2015 3:33pm

1) Please check Event Log on the management server and see if there are any related errors.

2) On the management server, please ensure the following key exists:

HKLM:\SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\Powershell\V2
3) Action Account has access to the resources used by the PowerShell script.

4) Make sure that the computer is not over utilized.
Roger

 

Free Windows Admin Tool Kit Click here and download it now
April 21st, 2015 11:05pm

1) Please check Event Log on the management server and see if there are any related errors.

Nothing interesting found

2) On the management server, please ensure the following key exists:

HKLM:\SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\Powershell\V2

Two entries found underneath this key;

  1. (Default) (value not set)
  2. InstallDirectory C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\

3) Action Account has access to the resources used by the PowerShell script.

is LocalSystem

4) Make sure that the computer is not over utilized.

No indication of overutilization

Thank you for the suggestions!  Do you know of anything else to check?


  • Edited by KCStix 9 hours 58 minutes ago
April 22nd, 2015 5:11pm

1) Please check Event Log on the management server and see if there are any related errors.

Nothing interesting found

2) On the management server, please ensure the following key exists:

HKLM:\SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\Powershell\V2

Two entries found underneath this key;

  1. (Default) (value not set)
  2. InstallDirectory C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\

3) Action Account has access to the resources used by the PowerShell script.

is LocalSystem

4) Make sure that the computer is not over utilized.

No indication of overutilization

Thank you for the suggestions!  Do you know of anything else to check?


  • Edited by KCStix Wednesday, April 22, 2015 9:12 PM
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 9:11pm

1) Please check Event Log on the management server and see if there are any related errors.

Nothing interesting found

2) On the management server, please ensure the following key exists:

HKLM:\SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\Powershell\V2

Two entries found underneath this key;

  1. (Default) (value not set)
  2. InstallDirectory C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\

3) Action Account has access to the resources used by the PowerShell script.

is LocalSystem

4) Make sure that the computer is not over utilized.

No indication of overutilization

Thank you for the suggestions!  Do you know of anything else to check?


  • Edited by KCStix Wednesday, April 22, 2015 9:12 PM
April 22nd, 2015 9:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics