Search code examples
powershellcmdcommandprompt

How can i start a process in powershell another machine?


This code is works in cmd:

"C:\Program Files\...\.exe" /run Testv1 /resource machine:port /sso

How can i run it in powershell?


Solution

  • Use this:

    Start-Process "C:\Program Files\..." -ArgumentList "/run Testv1 /resources machine:port"
    

    Or

    & "C:\Program Files\...\.exe" /run Testv1 /resource machine:port /sso"