Verifying the /3GB switch

by Mitch Tulloch [Published on 14 Aug. 2007 / Last Updated on 14 Aug. 2007]

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 & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select MaxProcessMemorySize from Win32_OperatingSystem")
For Each objItem in colItems
Wscript.Echo "MaxProcessMemorySize: " & objItem.MaxProcessMemorySize
Next

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

***

Mitch Tulloch is lead author for the Windows Vista Resource Kit from Microsoft Press, which is THE book for IT pros who want to deploy, maintain and support Windows Vista in mid- and large-sized network environments. Mitch is also the author of Introducing Windows Server 2008, the first book from Microsoft Press about the exciting new server platform. For more information on these and other books written by Mitch, see www.mtit.com.

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links