MP to run stuff as rules, for simple maintenance.
-
LOST.Unsealed.MP.Backup.Rule
This rule exports unseal:ed management packs as a ZIP to a UNC path.
Targeted at the 'All Management Servers' group, and therefor runs on one of the management servers in the group.
Extended from: https://kevinholman.com/2017/07/07/scom-2012-and-2016-unsealed-mp-backup/- Overrides:
-
BackupPath (Mandatory):
Set this to a UNC share and make sure the SCOM account used to run the rule has write access -
DaysToKeep (Optional):
Amount of days to keep in the backup folder.
Default: 120 days -
IntervalSeconds (Optional):
How often the backup is run.
Default: 24h -
SyncTime (Optional):
When the backup starting. 24h.
Default: 03:00 -
TimeoutSeconds (Optional):
Script timeout.
Default: 5 min
-
- Overrides:
-
LOST.Delete.Disabled.Objects.Rule
This rule runs the 'Remove-SCOMDisabledClassInstance' via the SDK endpoint. Extended from: https://nocentdocent.wordpress.com/2012/11/30/how-to-schedule-the-remove-scomdisabledclassinstance-comdlet/-
Overrides:
-
IntervalSeconds (Optional):
How often the command is run.
Default: 24h -
SyncTime (Optional):
When to run it.
Default: 01:00 -
TimeoutSeconds (Optional):
Script timeout.
Default: 10 min
-
-
- Download the Zip from the "releases tab"
- UnZip
- Import into SCOM
- Set overrides to match your environment