简体   繁体   English

如何在另一台机器的powershell中启动进程?

[英]How can i start a process in powershell another machine?

This code is works in cmd:此代码适用于 cmd:

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

How can i run it in powershell?我怎样才能在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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何启动进程,暂停2小时,然后在Powershell中终止进程 - How can I start a process, pause for 2 hours and then kill a process in Powershell 我如何在Powershell中使用大型多行脚本块启动进程? - how i can start process with large multiline script block in powershell? powershell 在远程机器上执行启动进程 - powershell execute start-process on remote machine Powershell启动过程不会在远程计算机上启动该过程 - Powershell Start-Process does not start the process on remote machine 如何获取由另一个 Powershell 进程打开的 Powershell 进程? - How do I get a Powershell process that was opened by another Powershell process? 如何使PowerShell运行原始的Start-Process cmdlet而不是PSCX Start-Process cmdlet? - How can I make PowerShell run the original Start-Process cmdlet rather than the PSCX Start-Process cmdlet? 远程Powershell可以启动此过程吗? - Can remote powershell start this process? 我如何使用某些字符串分隔符来开始处理powershell.exe? - How can I Start-Process powershell.exe with some string splitter? 在Powershell中,如何将数组作为参数传递,该数组是Start-Process -ArgumentList的多个参数之一 - In Powershell how can I pass an array as an argument, which is one of multiple arguments to Start-Process -ArgumentList 如何在 PowerShell 中启动多个进程 - How to start multiple process in PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM