Scripts/get-SCSMSubscription.ps1

1
2
3
4
5
6
7
8
9

Get-SCSMRule| 
    ?{ $_.WriteActionCollection | ?{ $_.Configuration -match "SendNotificationsActivity"}}|
    %{ $_.psobject.typenames[0] = "ManagementPackRule#NotificationSubscription"; $_ }
#$coll | %{
# $_.psobject.typenames[0] = "ManagementPackRule#NotificationSubscription"
# $_ | Add-member -pass NoteProperty ManagementPack $_.GetManagementPack()
# }