使用メモリ追加 by Powershell
使用メモリ追加
クオータが不足していますメッセージが出るようになったため、使用メモリを追加する。
winrm
winrmを使用するので設定。管理者権限が必要なので、管理者になってから。
Start-Process powershell -verb runas
winrm quickconfig
現設定を確認
Get-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB
Get-Item WSMan:localhost\Plugin\microsoft.powershell\Quotas\MaxConcurrentCommandsPerShell
変更
変更にはアドミン権限が必要。ここでは2GBに変更。
Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 2048
Set-Item WSMan:localhost\Plugin\microsoft.powershell\Quotas\MaxConcurrentCommandsPerShell 2048
Restart-Service WinRM
変更確認
Get-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB
Get-Item WSMan:localhost\Plugin\microsoft.powershell\Quotas\MaxConcurrentCommandsPerShell