Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > System Security

Vista - command for Virtual Memory Settings in vista

Reply
 
Old 03-18-2009   #1 (permalink)


Vista Ultimate x84
 
 

command for Virtual Memory Settings in vista

hi,

what is the command through which i can set the virtual memory in vista....

regards,
sudhir

My System SpecsSystem Spec
Old 03-18-2009   #2 (permalink)


Win7x64
 
 

Re: 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 System SpecsSystem Spec
Old 03-18-2009   #3 (permalink)


Vista Ultimate x84
 
 

Re: command for Virtual Memory Settings in vista

I want to set the custom virtual memory size in performance to a particular size... i want to accomplish this through command line..
My System SpecsSystem Spec
Old 03-18-2009   #4 (permalink)


Win7x64
 
 

Re: command for Virtual Memory Settings in vista

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 System SpecsSystem Spec
Old 03-18-2009   #5 (permalink)


Vista Home Premium 64bit SP2
 
 

Re: command for Virtual Memory Settings in vista

MSFN Forums > How to set pagefile?

Id leave it at system managed if i were you
My System SpecsSystem Spec
Old 03-19-2009   #6 (permalink)


Vista Ultimate x84
 
 

Re: command for Virtual Memory Settings in vista

ok but how will u set it to system managed
My System SpecsSystem Spec
Old 03-19-2009   #7 (permalink)


Win7x64
 
 

Re: command for Virtual Memory Settings in vista

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 System SpecsSystem Spec
Old 03-19-2009   #8 (permalink)


Vista Ultimate x84
 
 

Re: command for Virtual Memory Settings in vista

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 System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How do I increase my virtual memory settings General Discussion
Virtual Memory Advice for Vista 64 & 8GB of Ram Vista performance & maintenance
Cannot set virtual memory Vista Home Premium Vista performance & maintenance
Virtual Memory Control and Settings in Windows Vista Vista performance & maintenance
Open Scrreensaver Settings From the Command Line? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46