|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources.
|
PowerShell Memory - CIM_PhysicalMemoryCheck A Computer's Memory with PowerShell's CIM_PhysicalMemoryOur mission to use PowerShell to interrogate a computer's physical memory, to see the properties of that RAM stick(s). Goals include discovering the capacity, speed and data width. We also have pure PowerShell goals, to research with Get-member and to control the display with format-table -auto. Topics for PowerShell Memory
♣ Trusty Twosome (Get-Help and Get-Member)When you discover a new PowerShell command, it benefits from being surveyed with what I call the 'Trusty Twosome'. Research with Get-Help and Get-Member and reveal new scripting possibilities for Get-WmiObject CIM_PhysicalMemory. To see what I mean start with Get-Help. Preparation with PowerShell's Get-HelpThe master cmdlet is Get-WmiObject, and as we will see later, PowerShell's CIM_PhysicalMemory is a class of this object. # Help with PowerShell WMI object: Note 1: If you prefer examples: help gci -full Get-help unearths useful parameters such as -class and -computerName (-computer also works). Simple Example: Display CIM_PhysicalMemoryA simple script to display your computer's physical memory. # A simple command to display CIM_PhysicalMemory Those with a VBScript, or SQL background may be more familiar with query and select statement. This achieves the same result, but is only useful if you wished to modify "Select *". # Display CIM_PhysicalMemory using
-query and "Select"
Guy Recommends: Solarwinds' Free Bulk Import Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Home Copyright © 1999-2012 Computer Performance LTD All rights reserved Please report a broken link, or an error. | |