Created
April 16, 2014 21:22
-
-
Save alicraigmile/10934412 to your computer and use it in GitHub Desktop.
How much memory does this Windows workstation have?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GetMemory | |
strComputer = "." | |
Set wbemServices = GetObject("winmgmts:\\" & strComputer) | |
Set wbemObjectSet = wbemServices.InstancesOf("Win32_LogicalMemoryConfiguration") | |
For Each wbemObject In wbemObjectSet | |
WScript.Echo "Total Physical Memory (kb): " & wbemObject.TotalPhysicalMemory | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment