O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12 quick reference

To

Do this

Retrieve WMI information from a remote legacy system

Use the Get-WMIObject cmdlet and specify credentials as needed, and the target system.

Retrieve WMI information from a Windows 8 system or a Windows Server 2012 system

Use the Get-CimInstance cmdlet and specify the target computer and WMI class.

Run a WMI command on multiple Windows 8 or Windows Server 2012 computers

Use the New-CIMSession cmdlet to create a CIM session for the multiple systems. Then specify that session for Get-CimInstance.

Filter returning WMI data

Use the -filter parameter with either Get-WMIObject or Get-CimInstance.

Reduce the number of returned properties

Use the -property parameter with either Get-WMIObject or Get-CimInstance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required