Jump to content
Sign in to follow this  
alexischeng

Set Page File

Recommended Posts

alexischeng

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

Share this post


Link to post
Share on other sites
tricky808

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

Share this post


Link to post
Share on other sites
PerryRaptor

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

Share this post


Link to post
Share on other sites
alexischeng

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

Share this post


Link to post
Share on other sites
Insolence

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.