简体   繁体   中英

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?

Use this:

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

Or

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM