Summary
This chapter explored working with WMI classes, the different available commands, and the WMI Query Language.
The CIM commands are the best way of working with WMI in PowerShell 3 and above.
Since Get-WmiObject
has been removed from PowerShell, the WMI type accelerators were explored as an alternative means of working with WMI in the same style as Get-WmiObject
. This may be useful for the few rare classes that do not work using the CIM cmdlets.
Managing permissions is one of the more advanced WMI operations, and SMB shares and WMI permissions were used to demonstrate this.
The next chapter explores working with and generating and consuming data from a variety of different text-based formats.
Learn more on Discord
Read this book alongside other users, PowerShell experts, and the author himself. Ask questions, provide solutions to other readers, chat with the author via Ask Me Anything sessions, and much more.
Scan the QR code or visit the link to join the community.