Chapter 18. Your own WMI cmdlets

 

This chapter covers
  • Creating cmdlets from WMI classes
  • Creating a module to load multiple cmdlets
  • Creating format and type files

 

In the previous 17 chapters of the book, you’ve seen how to use the WMI cmdlets provided in PowerShell v2. PowerShell v3, introduced with Windows 8, enables you to take this a step further and create your own WMI cmdlets! The ability to create cmdlets directly from the WMI classes will radically alter the way we work with WMI in the future. This functionality is referred to as cmdlets-over-objects—you create a cmdlet directly from the WMI object. The use of WMI and CIM is massively expanded in the Windows 8 product line. In fact, much of the new PowerShell functionality introduced ...

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.