How can I remotely change the size of a pagefile?

John Savill

July 1, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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:

  1. Start the registry editor (regedt32.exe)

  2. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management

  3. Double click PagingFiles

  4. There is one line for each page file, the format is

    e.g.
    C:pagefile.sys 120 140
    Click here to view image

  5. Click OK

  6. Close the registry editor

  7. 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

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like