Kaseya Community

Script to increase virtual Memory

  • Dear all,

    My boss has asked if there is a way to create a script that will increase the virtual memory of the system. I personally do not know if this is possible. If you guys/girls have any idea's or know how to create this script please help me.

    Thanks in advance.

  • I love Google:


  • If you're looking to increase the paging file for the OS drive you can attempt to use the following:

    I would highly recommend testing this on a development machine before pushing this out to a production box:

    REG add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /d "C:\pagefile.sys 0 0" /f

    Change the 0 and 0 values to be the initial and max values respectively.

    A reboot will be required in order for it to take effect.