- Export your management pack to an Excel XML file and place it next to this script.
- Run
MP_Baseline_Automation.ps1on your SCOM management server. - Check the created overrides in the Operations Manager console.
MP_Baseline_Automation.ps1 automates baseline overrides for SCOM management packs. It scans an exported Excel XML file for monitors and rules marked as Disabled, Debug or Activated and creates the respective override entries. Debug overrides are assigned to a *.DebugGrp group that is created automatically if needed.
- Windows PowerShell with the modules
OperationsManagerandOpsMgrExtendedinstalled. - Permissions to modify the target SCOM environment.
- The script must run on a SCOM management server.
MP_Baseline_Automation.ps1– main automation script.LICENCE– usage license (CC BY-SA 4.0).
- Export your source management pack with MPViewer as an Excel XML file and store it in the same directory as
MP_Baseline_Automation.ps1. - Edit the worksheets
Monitors - UnitandRulesin the XML file and set theEnabledcolumn toDebugorDisabledas required. - Run the script. It automatically loads the XML file, creates (if necessary) an override management pack and a debug group, removes old overrides (unless
-Scope AddOnlyis used) and generates new overrides from the XML.
-Scope–AddOnly(only add new overrides) orDeleteOnly(only remove overrides previously created by this script).-DebugLog– enable verbose output.
.\MP_Baseline_Automation.ps1 -DebugLog -Scope AddOnlyThis runs the script with detailed debug information and adds new overrides without removing existing ones.
This project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License as noted in the LICENCE file.