tags:

views:

97

answers:

3

I'd like to increase number of concurrent shells in PowerShell V2.I tried using the following command ,but I got no luck.The error I got is" Error: Invalid use of command line. Type "winrm -?" for help." Can someone shine some light?

winrm set winrm/config/winrs @{MaxShellsPerUser="50"}
+4  A: 

From an elevated PowerShell prompt execute:

Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 50
Keith Hill
A: 

I can't activate winrm on my box, but according to MSDN, the syntax is:

winrm set winrm/config @{MaxShellsPerUser="50"}

Timores
+3  A: 

I'll just add to Keith's answer that you can find the command mentioned and much more in Administrator’s Guide to Windows PowerShell Remoting. It's worth reading!

stej
+1 for the Admin Guide. It's very helpful.
Keith Hill
Have you checked http://www.ravichaganti.com/blog/?p=1305 (eBook: Layman’s guide to PowerShell 2.0 remoting), just interested how it goes compared to the 'Administrators guide to ..'. I still haven't time to check this one by Ravikanth.
stej