Jump to content

Recommended Posts

Posted

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:


Posted

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:

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

Edited by MasterJukey
Posted (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_
Next
End Sub

ConfigPageFile

Edited by RogueSpear
Posted (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):

ConfigPageFile

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

Edited by RogueSpear

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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