如何从 Powershell 打开 Powershell 控制台窗口 [英] How to open Powershell Console Window from Powershell

查看:60
本文介绍了如何从 Powershell 打开 Powershell 控制台窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个脚本来使用多个 plink (PuTTY) 会话作为 clustersh 的 Windows 版本.但是,我被卡住了,因为我想从 powershell 打开多个 Powershell 窗口.当我为 powershell 键入命令时,它会打开一个新会话.这类似于在 bash 中键入 bash.我想打开多个物理窗口.

I am writing a script to use multiple plink (PuTTY) sessions as a Windows version of clusterssh. I am stuck however because I want to open multiple Powershell windows from powershell. When I type the command for powershell, it opens a new session. This is similar to typing bash in bash. I want multiple physical windows opening.

我尝试了 -windowstyle 以及其他参数但无济于事.我想知道是否有你知道的方法.我真的很感谢你的帮助.我看了看,并没有在这里找到任何东西.谢谢你的时间.

I tried -windowstyle as well as the other args to no avail. I was wondering if there is a way you know of. I really appreciate your help. I looked and didn't find anything already here. Thanks for your time.

推荐答案

这样做:

Invoke-Item C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

这篇关于如何从 Powershell 打开 Powershell 控制台窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆