Virtual Memory, unattended install

  • Thread starter Thread starter Fred B
  • Start date Start date
F

Fred B

Greetings.

Is there a way to set the virtual memory size in an
unattended XP install? Using the winnt.sif or any other
batch files, .cmd files, or ANY other means?

Thank you for your time,
-Fred
 
You can use the Win32_PageFileSetting WMI class in a vbscript...

Here is a example...

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
Set colPageFiles = objWMIService.ExecQuery _
("SELECT * FROM Win32_PageFileSetting")
For Each objPageFile in colPageFiles
objPageFile.InitialSize = 1000
objPageFile.MaximumSize = 1500
objPageFile.Put_
Next


regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net
 
Back
Top