我想增加PowerShell V2中的併發shell數。我嘗試使用以下命令,但沒有運氣。我得到的錯誤是「錯誤:無效的命令使用請輸入「winrm - ?」尋求幫助。「 有人能發光嗎?增加PowerShell V2中的併發shell數
winrm set winrm/config/winrs @{MaxShellsPerUser="50"}
我想增加PowerShell V2中的併發shell數。我嘗試使用以下命令,但沒有運氣。我得到的錯誤是「錯誤:無效的命令使用請輸入「winrm - ?」尋求幫助。「 有人能發光嗎?增加PowerShell V2中的併發shell數
winrm set winrm/config/winrs @{MaxShellsPerUser="50"}
我只是加上Keith的回答,你可以在Administrator’s Guide to Windows PowerShell Remoting找到所提及的命令和更多。值得一讀!
從提升的PowerShell提示符下執行:
Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 50
我不能在我的盒子激活WinRM的,但根據MSDN,語法是:
WinRM的設置winrm /配置@ {MaxShellsPerUser =「50」}
您錯過了單引號。
winrm set winrm/config/winrs '@{MaxShellsPerUser="50"}'
對於管理員指南+1。這非常有幫助。 – 2010-03-26 03:29:09
你檢查了http://www.ravichaganti.com/blog/?p=1305(電子書:Layman的PowerShell 2.0遠程處理指南),只是感興趣的是它比'管理員指南..'更有趣。我仍然沒有時間檢查Ravikanth的這一個。 – stej 2010-03-26 08:10:37