Jump to content

Set Page File


alexischeng
 Share

Recommended Posts

Is this the proper way to set pagefile?

Script Function:

; Change pagefile size

; $init = init size

; $max = maximum size (4095 max)

; Remark : Reboot to take effect

; ----------------------------------------------------------------------------

$init="3000"

$max="4095"

$par1="c:\pagefile.sys "&$init&" "&$max

$keyname="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"

$valuename="PagingFiles"

RegWrite($keyname, $valuename, "REG_MULTI_SZ", $par1)

Change_Pagefile_size.au3

Link to comment
Share on other sites

Is this the proper way to set pagefile?

Script Function:

; Change pagefile size

; $init = init size

; $max = maximum size (4095 max)

; Remark : Reboot to take effect

; ----------------------------------------------------------------------------

$init="3000"

$max="4095"

$par1="c:\pagefile.sys "&$init&" "&$max

$keyname="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"

$valuename="PagingFiles"

RegWrite($keyname, $valuename, "REG_MULTI_SZ", $par1)

<{POST_SNAPBACK}>

This is how I have done it in the past... I've never used AutoIt to do it, but I have manually modified this key for users via remote registry.

Aut viam inveniam aut faciam

Link to comment
Share on other sites

Yes, the registry key selected is the right one.  I find your numbers to be quite large though; must be a server I guess.

<{POST_SNAPBACK}>

I got a problem everytime I install some SQL server onto notebooks, the pagefile will not 'enlarge' automatically as expected, thats why I need to change the pagefile manually or the computer can't be boot up.

Alexis Cheng

Link to comment
Share on other sites

This is NOT the support forum, do not post support questions in here.

Thanks.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...