mirror of
https://github.com/rvrsh3ll/Misc-Powershell-Scripts
synced 2026-06-21 14:09:04 +00:00
Update Invoke-DCOM.ps1
This commit is contained in:
+2
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user