Chapter 5 Quick Reference


Open table as spreadsheet

To

Do This

Find the default WMI namespace on a computer

Use the advanced tab from the WMI Control Properties dialog box

Browse WMI classes on a computer

Use the Get-WmiObject cmdlet with the list argument

Make a connection into WMI

Use the Get-WmiObject cmdlet in your script

Use a shortcut name for the local computer

Use a dot (.) and assign it to the variable holding the computer name in the script

Find detailed information about all WMI classes on a computer

Use the Platform SDK: http://msdn2.microsoft.com/en-us/library/aa394582.aspx

Find the default WMI namespace on a computer

Use the advanced Tab from the WMI Control Properties dialog box

List all the namespaces on a computer

Query for a class named __NameSpace

List all providers installed in a particular namespace

Query for a class named __Win32Provider

List all the classes in a particular namespace on a computer

Use the list argument for the Get-WmiObject cmdlet

Quickly retrieve similarly named properties from a class

Use the Format-List cmdlet and supply a wild card asterisk (*) for the property argument




Microsoft Press - Microsoft Windows PowerShell Step by Step
MicrosoftВ® Windows PowerShell(TM) Step By Step (Step By Step (Microsoft))
ISBN: 0735623953
EAN: 2147483647
Year: 2007
Pages: 128
Authors: Ed Wilson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net