diff --git a/Samples/PowerShell/AlertSuppression.ps1 b/Samples/PowerShell/AlertSuppression.ps1 index 7e5d642a5..55ec399dc 100644 --- a/Samples/PowerShell/AlertSuppression.ps1 +++ b/Samples/PowerShell/AlertSuppression.ps1 @@ -1,7 +1,4 @@ -if ( (Get-PSSnapin -Name SwisSnapin -ErrorAction SilentlyContinue) -eq $null ) -{ - Add-PsSnapin SwisSnapin -} +Import-Module SwisPowerShell $OrionServer = 'localhost' $Username = 'admin'