我想在许多服务器上应用以下PowerShell设置:
Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 12345
Set-Item WSMan:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB 12345我找到了https://technet.microsoft.com/en-us/library/hh751276(v=sc.12).aspx,并测试了Computer Configuration\Administrative Templates\Windows Components\Windows Remote Shell\Specify maximum amount of memory in MB per Shell设置是否更改了localhost\Shell\MaxMemoryPerShellMB,但是有办法更改localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB吗?
发布于 2016-08-24 15:13:06
您应该能够使用所列的PS命令在测试系统上设置值,然后进入注册表:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\Microsoft.Powershell在那里找到键ConfigXML并复制值。在设置计算机配置、首选项、注册表的GPO中使用此值。
https://serverfault.com/questions/798783
复制相似问题