Solved

Auto configure Virtual Memory

Posted on 2006-11-08
2
481 Views
Last Modified: 2013-11-15
I want to make sure all the laptops on my network (600) have Virtual Memory set to "System Managed". Is there a way I can do this through Group Policies or a script?
0
Comment
Question by:noodleNT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
DjDezmond earned 250 total points
ID: 17905009
I took this script from http://redmondmag.com/forums/forum_posts.asp?tid=3039&pn=1.

I have one that does a similar job, but this one is tidier in my opinion:

------------------------------------------------------------------------------------------------------------
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colPageFiles = objWMIService.ExecQuery ("Select * from Win32_PageFileSetting")

For Each objPageFile in colPageFiles
    objPageFile.InitialSize = 0
    objPageFile.MaximumSize = 0
    objPageFile.Put_
Next
------------------------------------------------------------------------------------------------------------
Setting the Inital and Maximum size to 0 will set it to system managed.

I havn't tested this, so let me know how you get on.

Dez
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

688 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