Hyper-V How To: Manually Configure Hyper-V Pagefile
Hyper-V automatically configures your pagefile settings, but if, for some troubleshooting purposes, you may want to change them manually. Here's how:
1. To check current pagefile stats, from the command line type:
wmic pagefile get /format:list
2. To disable automatic system pagefile management, from the command line type:
wmic computersystem set AutomaticManagedPagefile=False
3. To set the desired pagfile location and size (i.e. Initial size = 1000MB, Maximum size = 5000MB):
wmic pagefileset where name=”c:\\pagefile.sys” set InitialSize=1000,MaximumSize=5000
4. Restart the server.
5. To check the results view the PagingFiles value in HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.