Quantcast
Channel: Setup Deployment forum
Viewing all articles
Browse latest Browse all 2818

Increase PageFile using commandline without reboot

$
0
0

Hi,

I need to increase the pagefile size on a system using a command line on the fly. There are 2 options using which I can set it:

1. wmic pagefileset where name="C:\pagefile.sys" set InitialSize=1450,MaximumSize=1450

OR
2. REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "D:\pagefile.sys <value> <value>" /f

Both the above mentioned methods work and show the changes in the registry. However, it does not change the actual size of the pagefile on the disk until a restart. Nor does it show the updated value when checking using "Get-CimInstance Win32_PageFileUsage | fl *" command.

Ideally, an increase in the page file size from the GUI does not need a reboot, when click on "Set" option.

Is there a way to refresh the pagefile size after it has been increased in the registry, without rebooting the system? Or is there a way to set the page file size at startup which can be automated.

Any help will be highly appreciated!


Viewing all articles
Browse latest Browse all 2818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>