Hi Folks,
I am looking to run the following command on multiple computers in my domain. I have googled and found a dozen “possible” things to try and none have so I thought I would ask you all. I need to run this
C:Program Files (x86)ossec-agentuninstall.exe /S
Can someone help me out? I tried things like this
Invoke-Command -ComputerName COMPUTER {Start-Process -FilePath “C:Program Files (x86)ossec-agentuninstall.exe” -ArgumentList “S”}
that did not work.
Thanks
submitted by /u/Thaladorr
[link] [comments]
The post How to use powershell to execute a program remotely? appeared first on How to Code .NET.