From c3d50182f52f256daeaf5bfa477865c55ff55c70 Mon Sep 17 00:00:00 2001 From: Tim Danner Date: Mon, 30 Oct 2017 16:51:06 -0500 Subject: [PATCH] Replace snapin with module in AlertSuppression.ps1 --- Samples/PowerShell/AlertSuppression.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'