Virtual Memory, unattended install

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
 
J

Johan Arwidmark

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top