Policy
Specify maximum amount of memory in MB per Shell
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista
This policy setting configures the maximum total amount of memory in megabytes that can be allocated by any active remote shell and all its child processes. Any value from 0 to 0x7FFFFFFF can be set, where 0 equals unlimited memory, which means the ability of remote operations to allocate memory is only limited by the available virtual memory. If you enable this policy setting, the remote operation is terminated when a new allocation exceeds the specified quota. If you disable or do not configure this policy setting, the value 150 is used by default.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
MaxMemoryPerShellMB ID MaxMemoryPerShellMB | decimal | HKLM\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS\MaxMemoryPerShellMB Type REG_DWORD | Range: 0 to 2147483647 |
Other policies in this category
Explore related policies at the same level.
- ComputerAllow Remote Shell AccessAt least Windows Vista
- ComputerMaxConcurrentUsersAt least Windows Vista
- ComputerSpecify idle TimeoutAt least Windows Vista
- ComputerSpecify maximum number of processes per ShellAt least Windows Vista
- ComputerSpecify maximum number of remote shells per userAt least Windows Vista
- ComputerSpecify Shell TimeoutAt least Windows Vista