Hyper-V Server Core or Hyper-V Server and Pagefile Settings

One of the discussions when designing a Hyper-V server is about the pagefile settings. Normally the parent partition uses around 2GB of memory so it's usually recommend a manually managed pagefile of approximately 4 ~ 6 GB. Whyn't a system managed pagefile? Because it'll grow to amount of physical memory. To change this on a […]

One of the discussions when designing a Hyper-V server is about the pagefile settings. Normally the parent partition uses around 2GB of memory so it's usually recommend a manually managed pagefile of approximately 4 ~ 6 GB. Whyn't a system managed pagefile? Because it'll grow to amount of physical memory. To change this on a Hyper-V Server Core or Hyper-V Server you can use following commands:

wmic computersystem set AutomaticManagedPagefile=False
wmic pagefileset where name="c:\\pagefile.sys" set InitialSize=4000,MaximumSize=6000

To check pagefile settings with following command: wmic pagefile get /format:list Or you can use Registry Editor and navigate to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

[Source]