Finding WMI classes that contain methods

Summary: Learn how to find methods from WMI classes. Sometimes when working with WMI, it might seem as if you are entering a strange territory with dangers lurking around every corner. Unfortunately, there might not even be a sign such as the following to alert you to the hidden dangers: But by using the CIM…


PowerTip: List all WMI classes

Summary: Use the Get-CimClass cmdlet to easily list all classes in current WMI namespace.  How can I use Windows PowerShell to list all of the WMI classes in the current WMI namespace?  Use the Get-CimClass cmdlet.


Use CIM cmdlets to find WMI classes

Summary: Learn how to locate the right WMI class by using the Get-CimClass cmdlet to work through the class schema. Windows Management Instrumentation (WMI) came into the Windows world around the time of the Windows NT 4.0 Service Pack 4—that’s about the same time as the release of Star Wars 1: The Phantom Menace. One…


Using the PowerShell CIM cmdlets for fun and profit

Summary: Learn how to use CIM cmdlets for better speed, security, and data return as opposed to the WMI cmdlets in Windows PowerShell. The other day, Windows PowerShell MVP, Richard Siddaway, posted Should I use CIM or WMI with Windows PowerShell? Today, I would like to continue that discussion a little bit. You should read…


Should I use CIM or WMI with Windows PowerShell?

Summary: Richard Siddaway explains the differences between the CIM cmdlets and the WMI cmdlets, and details use cases.  Hey, Scripting Guy! Should I use the WMI cmdlets or the newer CIM cmdlets? —NR  Hello NR, Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. The simple answer is…


Working with Windows Startup Processes and PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to examine startup processes in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am playing with the Xbox One Smart Glass app on Windows 10. I have used the app since it was in beta, and I just got my Xbox…


PowerTip: Use PowerShell to Remove All CIM Sessions

Summary: Learn how to use Windows PowerShell to remove all CIM sessions.  How can I use Windows PowerShell to delete all the CIM sessions I have created?  Use the Get-CIMSession cmdlet to retrieve all CIM sessions, and pipe the results to the            Remove-CIMSession cmdlet: Get-CimSession | Remove-CimSession


Combine PowerShell Remoting and CIM

Summary: Microsoft Scripting Guy, Ed Wilson, talks about combining Windows PowerShell remoting and CIM. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is remoting. It is not a new feature. In fact, it was introduced in Windows PowerShell 2.0—a time that seems like eons ago. Really. That was back…


PowerTip: Find WMI Parent Class with PowerShell

Summary: Use Windows PowerShell to easily find a WMI parent class.  How can I use Windows PowerShell to find what parent class a particular WMI class derives from?  Use the Get-CimClass cmdlet, and select the CimSuperClassName property, for example: (Get-Cimclass win32_bios).CimSuperClassName


Look at Schema of WMI Class with PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to look at the schema of a WMI class. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about WMI is that it is largely self-describing. This means that I can use WMI and look at WMI. With the CIM cmdlets,…