Skip to content

Commit

Permalink
Another small update 🎃
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored Sep 14, 2023
1 parent 000b62e commit df584b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Powershell/Remove-MPDependencies-v1.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ PROCESS

foreach ($node in $nodes)
{
$aliasFound = $node.ChildNodes.Where{ $_.Context -match "$($reference.Alias)!" }
$aliasFound = $node.ChildNodes.Where{ $_.Context -match "$($reference.Alias)!" -or $_.Rule -match "$($reference.Alias)!" -or $_.Monitor -match "$($reference.Alias)!" -or $_.SecureReference -match "$($reference.Alias)!" }

foreach ($context in $aliasFound)
{
Expand Down Expand Up @@ -366,7 +366,7 @@ END
}
else
{
#Edit line 377 to change what happens when this script is run from Powershell ISE.
#Edit line 382 to change what happens when this script is run from Powershell ISE.
# Example 1:
# Get-SCOMManagementPack -Name Microsoft.SQLServer.Windows.Discovery | Remove-SCOMManagementPackDependencies
#
Expand Down

0 comments on commit df584b7

Please sign in to comment.