Using WMI and CIM in PowerShell
This course teaches you how you can use the CIM cmdlets and PowerShell to manage local and remote systems.
What you'll learn
Windows Management Instrumentation (WMI) is a core component of Windows that enables you to manage hosts both locally and remotely. Virtually every driver and OS subsystem/feature/role supports a WMI interface. As WMI is standards based, it also interoperates with Open Source systems that implement Open Management Instrumentation (OMI). The CIM cmdlets, introduced with PowerShell v3, provide a superior module you can use to manage systems using WMI (both Windows systems and any host that implements OMI). The course first looks at the architecture of WMI, how to explore WMI, and how to connect to WMI on remote and local machines. The course teaches you how to manage your systems with WMI, including creating, modifying, and destroying WMI data instances, invoke WMI methods locally or remotely, and managing eventing. We also look at associators and references used to link WMI data items. The course presents theory, shows how to use PowerShell to perform key operations, and provides demonstrations so you can see this technology at work. The CIM cmdlets are a set of cmdlets you use to manage your system as we show in this course.
Table of contents
- Module Introduction and Overview 1m
- What Is WQL? 1m
- WQL Structure and Syntax 1m
- Get-CimInstance and -Filter Parameter 2m
- Get-CimInstance Using WQL Query 2m
- Returning Properties and Instances 3m
- Other WQL Keywords 3m
- Using the -Filter Parameter vs. WQL Where Clause 2m
- Demonstration 9m
- WQL Performance 3m
- Resources and Module Conclusion 1m