Verifying the /3GB switch

Written by on Thursday, February 28, 2008 3:04 - 0 Comments

How to verify memory allocation when the /3GB switch is used.

So you’ve got an Exchange Server 2003 machine and you’ve added /3GB /USERVA=3030 to the boot.ini file. How do you know that it’s working? The simplest way is to query for the MaxProcessMemory size using WMI as follows:
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:\” & strComputer & “rootcimv2”)
Set colItems = objWMIService.ExecQuery(“Select MaxProcessMemorySize from Win32_OperatingSystem”)
For Each objItem in colItems
Wscript.Echo “MaxProcessMemorySize: ” & objItem.MaxProcessMemorySize

Here are the possible outputs:

2097024 means neither switches are working
3145600 means only the /3GB switch is working
3104640 means both the /3GB and /USERVA=3030 switches are working


Article written by

Leave a Reply

You must be logged in to post a comment.

2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC

Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC