Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 7 down vote accepted
Start-Process powershell
share|improve this answer
    
both works. but this 1 is easier to type/remember. –  risyasin May 23 '10 at 16:30
    
+1 Indeed, it is easier to remember :) –  l0c0b0x May 23 '10 at 17:20
    
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"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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