Virtual Memory Scripting

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.

itvizionAsked:
Who is Participating?
 
AmazingTechConnect With a Mentor Commented:
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
 
debuggerauCommented:
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
 
debuggerauCommented:
My preference is to have a fixed size pagefile that is 1.5 times the memory.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.