Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language ).
Questions tagged [wmi-query]
545 questions
-1
votes
3 answers
query inbound / outbound IPv4 packet count statistics of network card programatically in c#
I want to get statistics about sent and received packet counts (IP level : including TCP, UDP, etc) of a network card.
How can I query that information from windows?

F.I.V
- 317
- 1
- 14
-2
votes
1 answer
An embarrassing error appears in a .bat file and not in CMD
I'm actually working on a "Computer Info Dumper" and I need to get the ram name + capacity, the problem is that the line that make this: it works in CMD, but not in a .bat file.
Here is the 'command': powershell -command "GWmi…

Dazd-PKZ
- 27
- 5
-2
votes
1 answer
What is the C# alternative for the below powershell code?
I am trying to get a list of services from a remote machine using C# but it doesn't work but the same works when I run the PowerShell script under the same user.
$global:websess = New-PSSession -Computername $webserverNameList.Text -Credential…

Aswin Francis
- 87
- 1
- 13
-2
votes
2 answers
How do I divide the result of this code?
So I need to get the CPU temp for my program, and I am using the code below.
So, to get the CPU temp I used this code:
static void Main(string[] args)
{
try
{
ManagementObjectSearcher searcher =
new…

Cratherton
- 17
- 1
- 9
-4
votes
1 answer
Run a exe on remote computer placed in D drive using WMI
I have a windows application hosted on web server and a exe placed in D drive in another server. Now i want to run that exe from my web server on button click using WMI DLL. Also, I need to pass some arguments.???
I am able to open the notepad in…

Sahil Gupta
- 13
- 1
- 8