Skip to Content
Windows PowerShell™ 3.0 Step by Step
book

Windows PowerShell™ 3.0 Step by Step

by Ed Wilson
February 2013
Beginner content levelBeginner
704 pages
21h 31m
English
Microsoft Press
Content preview from Windows PowerShell™ 3.0 Step by Step

Chapter 13. Calling WMI Methods on WMI Classes

After completing this chapter, you will be able to:

  • Use WMI cmdlets to execute instance methods.

  • Use WMI cmdlets to execute static methods.

Using WMI cmdlets to execute instance methods

There are actually several ways to call Microsoft Windows Management Instrumentation (WMI) methods in Windows PowerShell. One reason for this is that some WMI methods are instance methods, which means they only work on an instance of a class. Other methods are static methods, which mean they do not operate on an instance of the class. For example, the Terminate method from the WIN32_Process class is an instance method—it will only operate against a specific instance of the WIN32_Process class. If you do not have a reference ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows Server™ 2003 Inside Out

Microsoft® Windows Server™ 2003 Inside Out

William R. Stanek
Windows PowerShell® 2.0 Bible

Windows PowerShell® 2.0 Bible

Thomas Lee, Karl Mitschke, Mark E. Schill, Tome Tanasovski

Publisher Resources

ISBN: 9780735669970Purchase book