Questions tagged [wmi-service]
62 questions
20
votes
3 answers
How to restart service remotely?
I can start or stop service remotely from .net project.
ConnectionOptions options = new ConnectionOptions();
options.Username = @"192.168.36.22\test";
options.Password = "test";
ManagementScope scope = new…

novicegis
- 519
- 3
- 5
- 13
15
votes
1 answer
Interacting with WMI via .NET core
I need to get information about system such as: motherboard info, hdd info, e.t.c. in OS Windows. I can get it from wmi service. But I need to gather it with .NET core application.
I know in .NET application there interface IWbemServices to…

theroom101
- 599
- 1
- 9
- 23
4
votes
4 answers
what is different between wmi and API
i work with c++ programming, I use an example for understanding main of my question.
Suppose, we want get current username in windows operation system, we can use follow code :
#include
#include
char username[UNLEN+1];
DWORD…

Mr.DeveloperCplus
- 234
- 1
- 10
3
votes
1 answer
How to detect antivirus installed on windows 2003 server and 2008 server 2003 server R2and 2008 server R2 using WMI or other then WMI in C++
i have used WMI to detect that antivirus is present on OS,
itz woking fine and display me information of antivirus like name and instance id on win xp and window7 by using Namespace:\root\SecurityCenter and \root\SecurityCenter, …

Sourabh Gupta
- 31
- 1
- 3
3
votes
2 answers
WMIprvse process leaks memory on 2008 server R2
I have a Windows 2008 R2 server running on a VM machine.
My .NET service is running on this server periodically querying WMI, for example:
SELECT ProcessId FROM Win32_Service WHERE ...
After a day or two WMIprvse takes up to 500M memory and WMI…

Dani Fischer
- 91
- 2
- 4
3
votes
1 answer
WMI call to get drivers
I am new using WMI. What is it?
Can I use WMI call in C# for example to get list of drivers on my PC? If so, which class do I call?

user1683517
- 171
- 3
- 7
2
votes
1 answer
How do I change/set DNS with c++?
I'm trying to change/set DNS with c++.
I've been unable to find any resources on this currently.
public static NetworkInterface GetActiveEthernetOrWifiNetworkInterface()
{
var Nic =…

hugzho
- 77
- 1
- 6
2
votes
0 answers
Issue when executing IWbemServices.ExecQuery when executing WMI using JNA
I am trying to write a Java program which uses JNA to execute WMI query to execute on remote machine (Provided username/password).
I am trying to port this WMI example. I have modified this code here for my testing purpose (directly provided…

suraj1291993
- 474
- 1
- 5
- 15
2
votes
1 answer
vbscript kill a process with a PID WMIService
I have a folder filled with few vbscripts (say 10) which has to be run sequentially, Instead of running each by clicking on them i want to automate this process. Below is my master.vbs script which runs each vbscript in that folder one by one. …

Mani kv
- 153
- 2
- 19
2
votes
0 answers
WMI dependent services to use WMI Query
I am using WMI query to get share folder:
public static List GetNetworkShareFoldersList(string serverName)
{
List shares = new List();
// do not use ConnectionOptions to get shares from local…

kombsh
- 387
- 2
- 3
- 14
2
votes
1 answer
Powershell security get-service different results interactive vs scheduled-task
I've spent hours trying to pin down this problem. I'm running a PowerShell to verify if various services are running. I want to run it every 5 minutes from Windows Task Scheduler.
It checks services on other servers, and some on the same machine…

NealWalters
- 17,197
- 42
- 141
- 251
2
votes
1 answer
Monitor Drive. Using VB Script
I want to monitor a drive for file changes, using VBScript. I have the below code. It works fine for InstanceCreationEvent and InstanceDeletionEvent. But InstanceModificationEvent is not happening. From googling I got to know we need to use…

Gokul Nath KP
- 15,485
- 24
- 88
- 126
2
votes
1 answer
TimeStamp_Sys100NS returning null from Win32_PerfFormattedData_PerfProc_Process wmi
I am trying to return the TimeStamp property using a wmi query and getting an object reference error. When I look in quickwatch, the property itself is null. I've seen examples of this on the web and can't figure out why this one property is…

Jeffrey Easley
- 306
- 2
- 6
- 17
1
vote
2 answers
Windows service fails to start on boot
Before I get into the text of this, please be aware that I have already tried the following:
Setting the service dependencies
Setting an extended timeout
Now, that having been said, you can probably guess what my problem is: My Windows service is…

Skudd
- 684
- 2
- 12
- 28
1
vote
1 answer
How to filter running process in wmi_exporter query?
I am using the command .\wmi_exporter.exe --collectors.enabled "process,cs" --collector.process.processes-where "Name LIKE 'chrome%' OR Name LIKE 'firefox%'" to track both chrome and firefox browsers.
But the metrics is collecting only the first…

shivcena
- 2,023
- 8
- 24
- 50