From e8d2e8e15707f0cb49f76624632092ed989a9d2d Mon Sep 17 00:00:00 2001 From: Steve Borosh Date: Wed, 8 Nov 2017 19:51:51 -0500 Subject: [PATCH] Update Invoke-DCOM.ps1 --- Invoke-DCOM.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Invoke-DCOM.ps1 b/Invoke-DCOM.ps1 index 25f876f..6a16c2c 100644 --- a/Invoke-DCOM.ps1 +++ b/Invoke-DCOM.ps1 @@ -187,7 +187,8 @@ function Invoke-DCOM { $Com = [Type]::GetTypeFromProgID("Excel.Application","$ComputerName") $Obj = [System.Activator]::CreateInstance($Com) - $obj.DDEInitiate("cmd", "/c $Command") + $Obj.DisplayAlerts = $false + $Obj.DDEInitiate("cmd", "/c $Command") } }