command for Virtual Memory Settings in vista

Can you explain what it is you're trying to do?

Virtual memory is not "settable" per se. The maximum virtual size of a process is always a fixed number, although obviously it's far larger on 64-bit Windows.

I expect you're probably trying to change the pagefile size, and that's accomplished through the "System" applet in the control panel (you can just run sysdm.cpl to get there). Equating the pagefile(s) with virtual memory is technically not correct though - they're not the same thing.
 

My Computer

You could use WMIC:

wmic:root\cli>pagefileset /?
PAGEFILESET - Page file settings management.
HINT: BNF for Alias usage.
(<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>].
USAGE:
PAGEFILESET ASSOC [<format specifier>]
PAGEFILESET CREATE <assign list>
PAGEFILESET DELETE
PAGEFILESET GET [<property list>] [<get switches>]
PAGEFILESET LIST [<list format>] [<list switches>]
PAGEFILESET SET [<assign list>]

Or you could script something to manipulate Win32_PageFileSetting directly under the \root\cimv2 namespace... objPageFile.InitialSize = ABC; objPageFile.MaximumSize = XYZ...

I'd also suggest searching for "pagefile settings", not "virtual memory". A pagefile is not directly analogous to virtual memory, so you're searching - if you're searching - for the wrong term.
 

My Computer

My Computer

System One

  • Manufacturer/Model
    Custom Build
    CPU
    Intel Q9550 @ 4Gig / Titan Fenir
    Motherboard
    XFX 780i
    Memory
    4GB OCZ PC2-8500C5 DDR2
    Graphics Card(s)
    Gainward GTX260/216 SLI
    Sound Card
    Creative X-FI Xtreme Gamer
    Monitor(s) Displays
    Dell UltraSharp 2209WA 22"
    Screen Resolution
    1680x1050
    Hard Drives
    western digital raptor 10000rpm sata
    PSU
    OCZ Modstream 700w
    Cooling
    Titan Fenir
    Keyboard
    Razer Reclusa
    Mouse
    Logitech G5 Gamer
    Internet Speed
    8mb
I think if you set both objPageFile.InitialSize and objPageFile.MaximumSize to 0, the pagefile will revert to system managed. Testing that should be simple :)
 

My Computer

thanks:) H2SO4... yes if we set InitialSize and MaximumSize to 0 the pagefile will revert to system managed.

below is the command for setting to system managed if anyone wants to use

WMIC PAGEFILESET Set initialsize=0,maximumsize=0

below is the command for setting to custom if anyone wants to use

WMIC PAGEFILESET Set initialsize=<Minsize>,maximumsize=<Maxsize>
Minsize should be less than Maxsize

regards

sudhir
 

My Computer

Back
Top