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)?
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.
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.
You can obtain WMI data either through the command-line tool, Winrm, or through a Visual Basic script that uses the WinRM Scripting API.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With