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 13 quick reference

To

Do this

Use the terminate method directly

Group the returning WMI object and use dotted notation to call the terminate method.

Use the terminate method from a variable containing the WMI object

Use dotted notation to call the terminate method.

Call a static method via the Invoke-WMIMethod cmdlet

Use the -class parameter to specify the WMI class name, and specify the name of the method via the name parameter.

Call a static WMI method without using the Invoke-WMIMethod cmdlet

Use the [wmi] type accelerator to retrieve the WMI class, store the resulting object in a variable, and use dotted notation to call the method.

Stop processes via WMI and not call the terminate method

Use the Get-WMIObject cmdlet to return ...

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