Skip to content

Commit

Permalink
Update Get-SCOMNotificationSubscriptionDetails.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
x-limitless-x authored Aug 4, 2021
1 parent 74bc6b5 commit 8571081
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Powershell/Get-SCOMNotificationSubscriptionDetails.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function Get-SCOMNotificationSubscriptionDetails
param
(
[Parameter(Mandatory = $false)]
[string]$Output
[string]$OutputFile
)
#Originally found here: https://blog.topqore.com/export-scom-subscriptions-using-powershell/
# Located here: https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/Get-SCOMNotificationSubscriptionDetails.ps1
Expand Down Expand Up @@ -232,6 +232,13 @@ function Get-SCOMNotificationSubscriptionDetails
$finalstring += $MainObject | Out-String

}
$finalstring
if($OutputFile)
{
$finalstring | Out-File $OutputFile
}
else
{
$finalstring
}
}
Get-SCOMNotificationSubscriptionDetails

0 comments on commit 8571081

Please sign in to comment.