alexischeng Posted January 4, 2005 Share Posted January 4, 2005 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 More sharing options...
tricky808 Posted January 5, 2005 Share Posted January 5, 2005 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 More sharing options...
PerryRaptor Posted January 5, 2005 Share Posted January 5, 2005 Yes, the registry key selected is the right one. I find your numbers to be quite large though; must be a server I guess. Link to comment Share on other sites More sharing options...
alexischeng Posted January 6, 2005 Author Share Posted January 6, 2005 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 More sharing options...
Insolence Posted January 6, 2005 Share Posted January 6, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now