Questions tagged [wmi-query]

Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language ).

545 questions
0
votes
0 answers

C# Do I have to unsubscribe from WMI events before closing?

As the title says, In my code I have registered a callback function when a program launches using WMI: ManagementEventWatcher Watcher = new ManagementEventWatcher(new WqlEventQuery("SELECT * FROM Win32_ProcessStartTrace WHERE…
Zeller33
  • 181
  • 2
  • 4
  • 16
0
votes
1 answer

How to get automatic call back through WMI when things changes on computer?

I have installed WMI code create creator from here and I am wondering what namespace and classes we need to select from application as shown below in an image in order to get an automatic call back in WMI when things changes on computer. After…
user5447339
0
votes
0 answers

WMI selecting multiple entries

So I have a program, where i'm getting general information about the user's machine. And I'm attempting to get multiple entries from WMI's Win32_Processor, namely the processors name, clockspeed, architecture and core count. However, selecting the…
0
votes
1 answer

Registry Permission

I want to retrive registry permission of the HKLM/software/sybase using wmi.
John
  • 703
  • 7
  • 18
  • 37
0
votes
1 answer

My code is causing high CPU usage in WMI Provider host (WmiPrvSE.exe)

I've build a project in C# which at some point has to listen to a other file opening and closing. The code i use actually works but somehow every time i run my project "WMI Provider Host" will go crazy with CPU usage. First run it will hit 50% usage…
user3299251
  • 98
  • 2
  • 12
0
votes
1 answer

How to check the server access using WMI?

I have used WMI to get the remote server disk space report using widows service. Im getting Access Denied exception, can any one suggest how to check the server access before it got exception. I need to check the server access before getting the…
Simhadri
  • 911
  • 7
  • 18
  • 32
0
votes
1 answer

WMI change name property

I have a legacy application which works on Windows 7 and Windows 2003 Server but is not working on 2012 R2, Getting OS non-compatible error. When I try to capture the procmon, got to know it executing the WMI query Select Name from…
user2502157
  • 9
  • 1
  • 7
0
votes
1 answer

JScript.NET: Enumerating WMI collections

In JScript.NET the following snippet: wmi.js ------ var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2"), col =null, prc=null; col=wmi.ExecQuery("SELECT * From Win32_Process", "WQL",…
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
1 answer

WMI Invalid Query in C# but works in wbemtest utility

I am trying to create a WQLEventQuery to run in a C# applet that triggers whenever a new folder is created within a specified folder. I have used WMI before and I am familiar with how it works. I successfully created the same type of eventquery for…
0
votes
2 answers

Why is WMI returning different results for the same computer?

I was troubleshooting some vbscript designed to query the default printer of a remote computer when I discovered the error in the script was actually because WMI is returning conflicting or even erroneous information. Please see this…
clifgriffin
  • 2,008
  • 3
  • 21
  • 41
0
votes
1 answer

WMI Query to get Microsoft HyperV VM Domain

Is there a WMI query that provides the Domain of a VM deployed on a Microsoft Hypervisor? Also, we will be querying the Hypervisor for the same.
0
votes
1 answer

After a WMI search in VBScript, can I create my search filter BEFORE my "For Each" statement?

I've created an alternative search utility to the Windows search utility with VBScript using a WQL search, but, as it turns out, it's quite slow. I would like to speed it up and I think I can do it, but I would need to place my search filter AFTER…
0
votes
1 answer

Get Speed and IP of network adapter using msft_netadapter

I am trying to get the speed and IP address associated with each network adapter. I used toWin32_NetworkAdapter and Win32_NetworkAdapterConfiguration, but according to MDSN this class is deprecated and they have implemented msft_netadapter. When I…
0
votes
1 answer

Getting Adapter bandwidth and Available IP Addresses

Can anybody tell me how can I get the available bandwidth and the ip addresses present in the network adapter. First I will tell what I have done. I tried with the Windows Management Instrumentation (WMI) queries of the classes…
0
votes
1 answer

Getting logged on users is very slow on some pcs

I was more or less copy-pasting the solution of this question. Have customized and whatnot but the general method is the same. The thing is, that it works like charm on all of the - tested - XP machines (don't ask, you'd be surprised) It is also…
Nash
  • 69
  • 9