alexischeng 0 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 Share this post Link to post Share on other sites
tricky808 0 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 Share this post Link to post Share on other sites
PerryRaptor 1 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. Share this post Link to post Share on other sites
alexischeng 0 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 Share this post Link to post Share on other sites
Insolence 2 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. Share this post Link to post Share on other sites