Course info
Oct 28, 2011
2h 30m

WMI is a fantastic management tool that is built right into Windows client and server. With PowerShell, you can access all off WMI simply and easily. This course shows you how you can do that.

About the author
About the author

Thomas is a UK IT Pro, with over 40 year’s experience in the IT field. He’s presently doing writing, consulting and training around some of the key Microsoft technologies including PowerShell, Lync and Windows Server/client.

More from the author
Windows Workflows with PowerShell
2h 31m
Aug 2, 2016
Using WMI and CIM in PowerShell
3h 31m
Jan 15, 2016
Implementing PowerShell Web Access in Server
1h 35m
Aug 11, 2015
More courses by Thomas Lee
Section Introduction Transcripts
Section Introduction Transcripts

Introduction to WMI and PowerShell
Welcome to Module 1, Introducing WMI and Windows PowerShell. In this module we'll start off with explaining what is WMI? We'll look at the WMI architecture in Windows. And I'll explain some of the key WMI terminology you need to know in order to be successful. Next I'll discuss exploring WMI using some key tools, which I'll then demo for you. We'll look at the WMI support in PowerShell and how you can WMI cmdlets to leverage WMI. And I'll demo those too. The module will finish up with a short look at some of the issues you'll face when using WMI and then a module summary.

Using PowerShell and WMI
Welcome to Module 2, Using PowerShell and WMI. In this module we're going to show you how you can use the WMI PowerShell cmdlets to access information in the WMI repository. We'll start off with looking at accessing individual WMI instances and there will be a short demo showing the use of the Get-WmiObject cmdlet to access individual instances. We'll then look at using WMI object properties and methods and accessing class information. We'll demo that as well. Then we'll look at using instance methods and static methods with a demo of using both of those types of methods. Then we'll look at the final aspect of using WMI, which is type accelerators and we'll demonstrate that too, followed by a short summary. So let's get started with using WMI.

Practical PowerShell
Welcome to Module 3, Practical WMI with PowerShell. In this module we're going to look at the some of the information you can find in WMI. We'll start off looking at finding namespaces, key windows classes, and some of the key application namespaces and classes. These will help you understand where within the vast array of classes in WMI you can find useful information. We'll follow that with a short demo. Then we'll look specifically at WMI performance counters that you might find useful for monitoring performance against dev machines somewhere on your network and we'll demonstrate that. We'll then look at WMI security and look at some of the parameters you can specify on your call to Get-Wmi Object that you might need depending upon your security issues and security requirements in your environment. We'll demonstrate that and finish with a short summary.

Using WMI Query Language
Welcome to Module 4, Using WMI Query Language (WQL). In this module we'll first look at what is WMI Query Language and examine how you can use the Windows query language to perform WMI data queries. We'll look at the where clause, meta characters, and then have a demonstration of using WMI to do data queries. We next look at WMI data associations and association queries and show you how you can see the associations between different classes that are defined within the WMI CIM repository. We'll look briefly at WMI event queries, although most of that will be in the next module followed by WMI Schema queries and a short demo of WMI schema queries and wrap up the module.

WMI Eventing
Welcome to Module 5, Eventing with WMI. In this module we will first look at PowerShell's WMI event architecture and look at how WMI and PowerShell work together. We'll then discuss intrinsic WMI events, events that are built into the WMI framework provided in Windows. We'll then demonstrate creating an intrinsic event subscription. We'll then look at extrinsic WMI events, events that are created through one or more WMI providers and we'll look at particular with the registry WMI events and we'll demonstrate those as well. We'll then look at permanent event subscriptions and these are subscriptions that you can use even when PowerShell isn't running, to handle and report on the event occurrences. We'll then look at a demo of creating a permanent event subscription. We'll then finish the module by looking at timer events and demonstrating those before finally summarizing the module.