BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
 |
 |
 |
| PowerShell Script To Return The Local Machines Installed Memory In Megabytes |
 |
|
|
By: Don Hite
Posted On: 10/29/2007
This article was Previously posted on Don Hite's Blog
This simple PowerShell script will return the local machines Installed memory in Megabytes.
PS1 Script:
$strComputer = $Host Clear
$RAM = WmiObject Win32_ComputerSystem $MB = 1048576
"Installed Memory: " + [int]($RAM.TotalPhysicalMemory /$MB) + " MB"
|
 |
 |
 |
|
|