Ybbest
Ybbest

Reputation: 1550

Increase number of concurrent shells in PowerShell V2

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"}

Upvotes: 3

Views: 5219

Answers (4)

afiune
afiune

Reputation: 11

You missed the single quotes.

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

Upvotes: 1

stej
stej

Reputation: 29479

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!

Upvotes: 4

Timores
Timores

Reputation: 14589

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

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

Upvotes: 0

Keith Hill
Keith Hill

Reputation: 201952

From an elevated PowerShell prompt execute:

Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 50

Upvotes: 5

Related Questions