Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to query WMI without using PowerShell or CIM Studio?

I'd like to query WMI for WCF service information, but I'd rather not use PowerShell or the CIM Studio. Any other tools for doing this (command-line is cool too)?

like image 703
Jordan Parmer Avatar asked Apr 06 '10 16:04

Jordan Parmer


People also ask

How do you query WMI?

The most basic way to run a WMI query is run WMIC in the standard Windows command prompt. To return information on the CPU running on the local machine, we follow these steps: Open a command prompt. Type WMIC to invoke the program, and hit enter.

Should I use CIM or WMI?

Microsoft has since deprecated the WMI commands in Windows in favor of their CIM counterparts. For example, if you are using PowerShell for management, you should use the CIM cmdlets and not the WMI cmdlets.

What tool does Microsoft provide for accessing WMI data?

You can obtain WMI data either through the command-line tool, Winrm, or through a Visual Basic script that uses the WinRM Scripting API.


1 Answers

C:\Windows\System32\wbem\wbemtest.exe

Type wbemtest in to a command prompt or the Start Menu to launch this GUI tool.

Edit: Sorry - didn't notice you said command-line specifically. Maybe useful none the less.

like image 127
xyz Avatar answered Sep 21 '22 12:09

xyz