If you need to individualize a monitor to run with a specific Account in SCOM, you could do it like this Powershell sample. Before importing the Managementpack please download and install the SamplePowershellMonitorWizardMP.zip, this is a really good one which easily take care of implementing Powershell script directly in the console.

https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379

After this import feel free to download my demo MP from below, but first a short explanation:

Goal: Run a powershell script monitor with a specific account.

Solution:

  1. Create the Runas account In SCOM:
    • In your SCOM Console and below Administration and Accounts create your Windows Accounts with permissions to run a powershell script on the target server.
  2. Import the Management Pack below:
    • Click Download from this blog and Import the MP in your Management Group
  3. Add the Account to the Profile:

      In your SCOM Console and below Administration and Profiles add your newly created Windows Accounts to this profile:

Blog1

  1. Export the Management Pack Coretech MP and open it with your favorite ide/text editor (VI and Notepad if you are more than 40 years old – Ronnie?)
  2. In your MP check the following:

blog2

and

blog3

And now your script is running as the specified user (If you remembered to distribute the account)

By |2015-06-19T00:23:23+01:00June 19th, 2015|Operations Manager (SCOM), Powershell|1 Comment

About the Author:

Kåre Rude Andersen
Microsoft Certified Trainer since 1996, MCSE, TS and ITP in Microsoft Windows, SQL (also Microsoft), Exchange (MS) and Microsoft Operations Manager. Senior Consultant and have recently worked as a consultant at CSC, SAS, ISS, Nokia and Scandlines.

One Comment

  1. Jabberwocq November 18, 2015 at 2:04 - Reply

    Notepad? I use edlin…

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.