Introduction
Windows Server administrators often need to configure various parameters to optimize PowerShell session performance and resource allocation. One such critical parameter is the MaxMemoryPerShellMB, which determines the maximum memory allocated to each PowerShell session. This article will explore multiple methods to configure the MaxMemoryPerShellMB setting.
Method 1: Using PowerShell Command Line Interface
The most straightforward way to configure MaxMemoryPerShellMB is through PowerShell itself. Follow these steps:
- Open a PowerShell command line interface.
- Navigate to the WSMan Shell configuration by using the
sl(Set-Location) anddir(Get-Item) commands: