Chapter 19. CIM cmdlets and sessions

 

This chapter covers
  • Using WMI methods in cmdlets created from WMI objects
  • Demonstrating the PowerShell v3 CIM cmdlets
  • Using CIM sessions to access remote machines

 

In this chapter, we’re going to continue our investigation of the CIM API introduced in PowerShell v3. In chapter 18, you saw how to create cmdlets directly from WMI classes. In this chapter, you’ll learn how to extend the use of PowerShell v3’s cmdlets-over-objects functionality to utilize the methods presented by WMI classes. You’ll create additional cmdlets to provide a mechanism to utilize those methods. WMI methods may or may not require parameters. You’ll learn how to work with both of these scenarios.

 

Note

This chapter builds on ...

Get PowerShell and WMI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.