User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

WMI has a large amount of namespaces, classes and properties. While the WMI Explorer allows you to browse, search and filter all these items, it also enables you to query the underlying data for all of this.

standard query for the selected class

What you see above here is a standard query for the selected class. It is the same as running a “select * from Win32_Service” in this case. You can also limit the number of columns or properties by only selecting the items you need.

limit the number of columns or properties by only selecting the items you need

In this case we selected the ‘Caption’ and ‘State’ properties only to get a list of all services and their respective states. If you use the “Property list” button on the ribbon you get a style of output that you may be more familiar with if you use Windows PowerShell.

use the “Property list” button on the ribbon for a WIndows PowerShell style of output

You can also run the query in PowerShell to see what the output there would look like.

run the query in Windows PowerShell

launch a new instance of PowerShell and submit the appropriate command to query the classes or properties

This will launch a new instance of PowerShell and submit the appropriate command to query the classes or properties you selected. While it is unfortunate that PowerShell does not include anything submitted on the command line in the command history, you can still get the command we use to do this:

get the command we use to do this: Copy PowerShell code

Just click on the down arrow and select “Copy PowerShell Code” and you get the one-liner we use to get that output.

If you are only interested in the data from a query, but not really in how to do this with PowerShell, you can just export your data in a number of different formats. Simply run the query inside WMI Explorer, either as a table or as a property list, and select one of the export commands.

export your data in a number of different formats

WMI Explorer query output

We kept the resulting output files as generic as possible to make it easier for you to customize these files or use them as input for other processes. If there are any other query and export function you want to see, don’t be shy, let us know.

If you have questions about our products, please post in our support forum.
For licensed customers, use the forum associated with your product in our Product Support Forums for Registered Customers.
For users of trial versions, please post in our Former and Future Customers - Questions forum.
Copyright © 2024 SAPIEN Technologies, Inc.