Solved

Virtual Memory Scripting

Posted on 2008-10-22
3
272 Views
Last Modified: 2010-04-24
Is there a way that I can create a script or push a registry change to allow all my workstations accross the domain to use the setting "system managed" for their virtual memory settings?

I could do it manually but If possible I would like to script it because editing the settings manually on 100+ computers could be a bit time consuming.

0
Comment
Question by:itvizion
  • 2
3 Comments
 
LVL 23

Expert Comment

by:debuggerau
Comment Utility
I don't know offhand, but I'd use regmon to get the registry settings when making a change to it locally, then find the particular key that way..
0
 
LVL 21

Accepted Solution

by:
AmazingTech earned 500 total points
Comment Utility
Change computername to the one you want to modify. A reboot is necessary for the setting to take effect.

This is DOS but you could modify it and put it into VBS.

reg add "\\Computername\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /f /d "C:\pagefile.sys 0 0"

Open in new window

0
 
LVL 23

Expert Comment

by:debuggerau
Comment Utility
My preference is to have a fixed size pagefile that is 1.5 times the memory.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now