locked
Two-State Unit Monitor PowerShell Custom MP - Event ID: 22403 Source: Health Service Modules RRS feed

  • Question

  • Hello,

    I am trying to create a custom Management Pack but want to use a PowerShell Script for a Two-State Monitor.  I am following this guide, http://technet.microsoft.com/en-us/library/ff381420.aspx.  I created a Discovery, which works as it finds a custom registry key on the target computer.  But I'm guessing when it's trying to determine the Health state is when I get this error.  The following error is what shows up on the Target Computer under the Operations Manager Event Log;  anyone seen this, I am new to this so bare with me if its something obvious.

    Event Type: Error
    Event Source: Health Service Modules
    Event Category: None
    Event ID: 22403
    Date:  3/12/2010
    Time:  2:59:12 PM
    User:  N/A
    Computer: TESTYTEST
    Description:
    Failed to load the PowerShell module because the correct version of PowerShell (1.0.0.0) is not installed, this workflow will be unloaded.
     

    Script Name: SIAMSTest.ps1

    One or more workflows were affected by this. 

    Workflow name: SIAMS.Business.WebApplication.UnitMonitor.SIAMS.Website
    Instance name: SIAMS.Business.WebApplication.SIAMSWebsite
    Instance ID: {3D8CECB9-9E80-75FB-4B74-BD09B804F1CE}
    Management group: AE-AAET

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Friday, March 12, 2010 10:29 PM

Answers

  • Are you sure the target computer has powershell installed?
    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
    • Marked as answer by Jeff Delaney Monday, March 15, 2010 3:49 PM
    Friday, March 12, 2010 11:43 PM
  • Hey Ake,

    Thanks for the reply and you pointed me in the right direction.  Powershell is installed on this target server, but the admins responsible for that server have disabled execution of scripts and that is why I am getting that error.

    thanks for your help, and sorry to bother everyone with this question.

    Thx,

    Jeff
    • Marked as answer by Jeff Delaney Monday, March 15, 2010 3:49 PM
    Monday, March 15, 2010 3:48 PM

All replies

  • Are you sure the target computer has powershell installed?
    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
    • Marked as answer by Jeff Delaney Monday, March 15, 2010 3:49 PM
    Friday, March 12, 2010 11:43 PM
  • Hey Ake,

    Thanks for the reply and you pointed me in the right direction.  Powershell is installed on this target server, but the admins responsible for that server have disabled execution of scripts and that is why I am getting that error.

    thanks for your help, and sorry to bother everyone with this question.

    Thx,

    Jeff
    • Marked as answer by Jeff Delaney Monday, March 15, 2010 3:49 PM
    Monday, March 15, 2010 3:48 PM