Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Development
  New Posts New Posts RSS Feed - Increase PageFile using commandline without reboot
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Increase PageFile using commandline without reboot

 Post Reply Post Reply
Author
Message
deepinder View Drop Down
Newbie
Newbie
Avatar

Joined: 25 October 2016
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepinder Quote  Post ReplyReply Direct Link To This Post Topic: Increase PageFile using commandline without reboot
    Posted: 25 October 2016 at 10:50am
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 " /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. Not 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!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.