July 2011
Intermediate to advanced
480 pages
11h 54m
English
To retrieve memory information from local and remote computers using PowerShell, we can use WMI, or query performance counters. In this recipe, you'll learn a few techniques that can be used to monitor memory utilization using the Get-WmiObject cmdlet.
$OS = Get-WmiObject Win32_OperatingSystem $CS = Get-WmiObject Win32_ComputerSystem

mb and gb multipliers:Now we can easily see that the local system has ...