MasterJukey Posted October 10, 2005 Posted October 10, 2005 Hi, i have found many 3d with regtweak to remove pagingfile.. but i would to set the pagingfile size during installation.. Is it possible ? I use drive C:\ ( WD RAPTOR) only for Windows and some software, and i would to set paging files MIN 2GB - MAX 2 GB: i have 1GB of ram but sometimes i need to enlarge paging files, and so i obtain a pagefile divided in 2 part or pagingfile moved at the end of the disk !!I hope you can help me and you understand my words...
MasterJukey Posted October 10, 2005 Author Posted October 10, 2005 Initially pagingfile is located at the beginning of the disk... But If Windows needs to enlarge pagingfile, the pagefile will be divided in 2 part, or it will be moved (larger than initially) at the end of the disk...I would want that pagingfile it remain at the beginning of the disc...
drscouse Posted October 10, 2005 Posted October 10, 2005 Check out:http://www.microsoft.com/resources/documen...fileconfig.mspxI too have a raptor, but stick my pagefile on a secondary SATA (different channel).. I have it so during install it moves pagefile, sets the size, and deletes the old one...http://www.msfn.org/board/index.php?showtopic=53664&hl=
MasterJukey Posted October 11, 2005 Author Posted October 11, 2005 (edited) I have just read your post !It is very interesting !!!!But i only would want resize the pagefile (during unattended installation) and i would want the pagefile remains resized (1.5 or 2 gb) at the beginning of the disk...Can you help me ? I am not able with script .. Edited October 11, 2005 by MasterJukey
RogueSpear Posted October 11, 2005 Posted October 11, 2005 (edited) Here is a VBscript subroutine I wrote for resizing the page file to twice the amount of RAM in a system. Been using it for years without problems.Sub ConfigPageFile Dim strComputer, objWMIService, objSWbemServices, colPageFile, colSWbemObject Dim colSWbemObjectSet, objSWbemObject, objPageFile, SystemRAM strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objSWbemServices = GetObject("winmgmts:\\" & strComputer) Set colPageFile = objWMIService.ExecQuery ("SELECT * FROM Win32_PageFileSetting") Set colSWbemObjectSet = objSWbemServices.InstancesOf("Win32_LogicalMemoryConfiguration") For Each objSWbemObject In colSWbemObjectSet SystemRAM = objSWbemObject.TotalPhysicalMemory / 1024 Next For Each objPageFile In colPageFile objPageFile.InitialSize = 2 * SystemRAM objPageFile.MaximumSize = 2 * SystemRAM objPageFile.Put_ NextEnd SubConfigPageFile Edited October 11, 2005 by RogueSpear
MasterJukey Posted October 11, 2005 Author Posted October 11, 2005 Tnx !!!!!But when i have to launch this script ? During T12 (when i install hotfixes) ? Before ?I use RunOnceEx.cmd ...
RogueSpear Posted October 11, 2005 Posted October 11, 2005 (edited) You cannot run the script from cmdlines.txt because it relies on WMI and WMI is not yet available at the cmdlines stage of setup. Note also that what I posted is simply a subroutine. In order for it to run all you should have to do is add one line to the bottom of the script (make it the last line):ConfigPageFileIn fact I'm going to edit the post to reflect that. Edited October 11, 2005 by RogueSpear
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now