Jump to content
Sign in to follow this  
mashti

SCOM scripts

Recommended Posts

Check out Boris Yanushpolsky's blog (

Hidden Content

    Give reaction to this post to see the hidden content.
).

Boris is an SCOM Program Manager focusing on SDK and PowerShell.

Utilities documented and available on his blog include:

  • Putting a computer into Maintenance Mode using PowerShell

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Put specific components into Maintenance Mode
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Take a group and puts all computers in the group (including the health service and healthservice watcher) into Maintenance Mode

    Hidden Content

      Give reaction to this post to see the hidden content.
    . This is enhanced at

    Hidden Content

      Give reaction to this post to see the hidden content.
    by Timothy McFadden. and at System Center Forum at

    Hidden Content

      Give reaction to this post to see the hidden content.
    .
  • Display what is in Maintenance Mode
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • PowerShell script to stop Maintenance Mode
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Enabling proxying for agents - select a computer group, browse the members, and multiselect the right computers and enable/disable proxying.
     

    Hidden Content

      Give reaction to this post to see the hidden content.
    . An improvement was developed by Clive Eastwood which you can get at

    Hidden Content

      Give reaction to this post to see the hidden content.
    .
  • Disabling/Enabling multiple rules/monitors/discoveries at once
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • PowerShell scripts showing what diagnostics and recoveries exist in your installation
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • A PowerShell script to help show the thresholds your monitors have
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • PowerShell script to list all the performance collection rules in a management group
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Override Explorer – show what overrides exist in a management group (nice!)
     

    Hidden Content

      Give reaction to this post to see the hidden content.
    (version 3.3)
  • Automate setting up URL monitoring, doing it in batch
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Automate port monitoring using PowerShell
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • PowerShell cmdlet that uses the SDK to add/remove users to a user role - this one really helps!
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use PowerShell to specify a RunAs Account for a RunAs Profile
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Configure a Run As profile for agents in bulk using the Run As Profile configuration helper
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • The MPViewer – display what’s in a management pack before importing it! This one is very popular and had gone through numerous enhancements
     

    Hidden Content

      Give reaction to this post to see the hidden content.
    (many updates, now at 1.7)
  • Script to convert a sealed management pack to readable XML (also discussed in System Center Operations Manager 2007 Unleashed)
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use PowerShell to dump what’s in a management pack
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Backup script to export mangement packs – this can run on any computer (not just the RMS) that has the OpsMgr console and Command Shell installed.

    Hidden Content

      Give reaction to this post to see the hidden content.
    . System Center Operations Manager 2007 Unleashed also has backup scripts, if you have purchased the book.
  • Display what discoveries are disabled by default
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Find out what groups a particular computer is a member of
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Retrieve all groups and then contents of each group and the types of objects contained in each group
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use the SDK to create a unit monitor
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use the SDK to create an Event Log unit monitor
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use the SDK to create a performance collection rule
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Use the SDK to create overrides
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Retrieve rules and monitors targeted to a particular class (target)
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Enumerate Windows Event log manual reset monitors
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Create a new task with overridable parameters
     

    Hidden Content

      Give reaction to this post to see the hidden content.

  • Module Explorer – provides some visibility into the library of modules and information about each module
     

    Hidden Content

      Give reaction to this post to see the hidden content.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...