If I'm working within a single powershell console, and say I want to spawn another powershell console window.

Is there a way to do this?

If you type "powershell" at the prompt - it doesn't launch a new window, just starts a new powershell instance within the current console window.

Any thoughts?

Start-Process powershell
  • both works. but this 1 is easier to type/remember. – risyasin May 23 '10 at 16:30
  • That'll do... Now what causes the background on the original console to be blue - but the "start-process powershell" console has a black background? (It's nice to have the differences) – Jason Jarrett May 23 '10 at 18:41
  • Yeap, insert mode is disabled too. Pretty weird! – l0c0b0x May 23 '10 at 21:39
  • The console background color is tied to the shortut that started the process. Since you're using Start-Process you launch the actual executable instead of the shortcut you don't get the background color or the other settings that are set via the shortcut. No good idea how to circumvent that. – Joey May 28 '10 at 14:01

Quick Google search would have helped:

Invoke-item "$pshome\powershell.exe"

For admin console:

start-process powershell -verb runAs
  • 2
    Can you explain how this adds to or improves the accepted answer? – Dave M Jan 1 '16 at 13:52
  • @Dave M - Can you explain how its different from the accepted answer? – StingyJack Jul 11 '17 at 14:52
  • @ StingyJack Not sure what you are asking from me. I asked if jakobii could add detail to answer to explain why it adds to or improved accepted answer. – Dave M Jul 11 '17 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.