Reputation: 39
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:
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?
Any help will be highly appreciated!
Upvotes: 3
Views: 6043
Reputation: 364
I am having the same problem and ran into a forum about it, the rundown is: via GUI, you may increase it without restart (although not always). if you're using the CMD, this MIGHT work:
wmic process where name="explorer.exe" call terminate
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
If this does not work, it is because of security in your workgroup and there is not much you can do about it if you don't address that first.
I think a better approach would be to investigate on how to restart your computer automatically and continue running whatever you need.
Upvotes: -1