Jump to content

Set Paging file during Windows XP Installation...


Recommended Posts

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... :blushing:

Link to comment
Share on other sites


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...

:blushing::blushing::blushing:

Link to comment
Share on other sites

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 .. :blushing:

Edited by MasterJukey
Link to comment
Share on other sites

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_
Next
End Sub

ConfigPageFile

Edited by RogueSpear
Link to comment
Share on other sites

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):

ConfigPageFile

In fact I'm going to edit the post to reflect that.

Edited by RogueSpear
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
  • Recently Browsing   0 members

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