How can I remotely change the size of a pagefile?
July 1, 1999
A. Pagefile information is stored in the registry as a multi_string(so you HAVE to use regedt32.exe) and can be changed locally as follows:
Start the registry editor (regedt32.exe)
Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management
Double click PagingFiles
There is one line for each page file, the format is
e.g.
C:pagefile.sys 120 140
Click here to view imageClick OK
Close the registry editor
Reboot the machine
To change on another machine you should use the resource kit REG.EXE utilitybut the command below will replace the current page file and will NOT check youhave enough disk space so you may want to create a script that does check. Makesure the machine is rebooted after the change.
C:> reg update "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSessionManagerMemory ManagementPagingFiles"=" " \
For example:
C:> reg update "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSessionManagerMemory ManagementPagingFiles"="C:pagefile.sys 120 140"\titanic.savilltech.com
Make sure you test this before trying to use on live machines.
About the Author
You May Also Like