开发者

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开发者_JS百科 ,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"}


From an elevated PowerShell prompt execute:

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


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!


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

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


You missed the single quotes.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜