hmscott4 / AlertManagement

Manage SCOM Alerts
2 stars 3 forks source link

Find (and update) Subscriptions Using New Resolution State in Criteria #70

Open hmscott4 opened 3 years ago

hmscott4 commented 3 years ago

Suggested by Tyson Paul. To mitigate impact on organizations with large numbers of Subscriptions using "New" resolution state.

Pseudo Code (not tested) $subs=Get-SCOMNotificationSubscription foreach($sub in $subs) { {insert find magic here} $sub.Configuration.Criteria = $newString $sub.Update() }