Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Running .exe application out of powershell with parameters

$
0
0

Hi,

I want to start a cmd.exe, launch another exe file and give some parameters / arguments for the exe out of powershell.

I'm already as far as to launch the cmd.exe and the program out of powershell:

Start-Process cmd.exe -FilePath "C:\Program Files\Update Services\Tools\wsusutil.exe"

For the wsusutil.exe I need to give some paramters what it has to do. In my case the parameter should be "reset".

I have tested different things I found on the internet but it won't work.

Any help appreciated.


Thanks.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>