msmith81886 msmith81886 - 1 year ago 168
PowerShell Question

How to open Powershell Console Window from Powershell

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.

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.

Answer Source

This will do it:

Invoke-Item C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download