Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
增加PowerShell V2中的并发外壳程序数_Powershell - Fatal编程技术网

增加PowerShell V2中的并发外壳程序数

增加PowerShell V2中的并发外壳程序数,powershell,Powershell,我想增加PowerShell V2中并发Shell的数量。我尝试使用以下命令,但没有成功。我得到的错误是“错误:命令行的使用无效。键入“winrm-?”以获取帮助。” 有人能发光吗 winrm set winrm/config/winrs @{MaxShellsPerUser="50"} 从提升的PowerShell提示符执行: Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 50 我无法在我的设备上激活winrm,但根据,语法为: winr

我想增加PowerShell V2中并发Shell的数量。我尝试使用以下命令,但没有成功。我得到的错误是“错误:命令行的使用无效。键入“winrm-?”以获取帮助。” 有人能发光吗

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

从提升的PowerShell提示符执行:

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

我无法在我的设备上激活winrm,但根据,语法为:


winrm set winrm/config@{MaxShellsPerUser=“50”}

我只想在Keith的回答中添加一点,您可以在中找到提到的命令以及更多内容。值得一读

你错过了单引号

winrm set winrm/config/winrs '@{MaxShellsPerUser="50"}' winrm set winrm/config/winrs'@{MaxShellsPerUser=“50”}您是否查看过(电子书:PowerShell 2.0远程处理外行指南),只是对它与“管理员指南…”的比较感兴趣。我还没来得及检查Ravikanth写的这封信。