Solved

Auto configure Virtual Memory

Posted on 2006-11-08
2
473 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

919 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

19 Experts available now in Live!

Get 1:1 Help Now