wmi-query Questions

5

Solved

I will like to find some result after this query, but in the beginning of the foreach loop, the error "invalid class" occur. string wmiQuery = string.Format("SELECT * FROM Win32_Process"); var sea...
Pedagogy asked 2/8, 2011 at 20:35

6

Solved

I am enumerating installed applications using WMI, and this block is taking a relatively long time to complete no matter how I structure it. It takes 13 seconds in my environment every time. Is the...
Dieppe asked 1/8, 2014 at 15:22

1

Solved

I've been trying to retrieve information about remote computers in our network via a WMI query. This works fine for all the info I need, I just don't seem to get the UserFriendlyName from the WmiMo...
Demonetize asked 26/1, 2021 at 16:35

5

Solved

I have a USB device that enumerates with a different interface, VID, PID and serial number when commanded to do so, and I'd like to keep track of the physical device after this change occurs. My th...
Wolfenbarger asked 20/6, 2011 at 20:15

0

With PowerShell I can use cmdlet (Get-VpnServerIPsecConfiguration).SstpPorts But we have strict security policies, so I have to get only WMI counters with Get-WmiObject -Query. I tried to google, b...
Graubert asked 9/6, 2020 at 11:12

3

I'm using WMI (Win32_NetworkAdapter) and trying to get the details of attached physical network adapters either wired or wireless and avoid virtual adapters, etc. Reading this article it explains ...
Histiocyte asked 11/4, 2012 at 21:46

1

Solved

Am attempting to query the serial number and the model of the monitor. I managed to use the WMI code creator to generate the below code: Try Dim MInfo As New ManagementObjectSearcher("root\WM...
Mcchesney asked 3/8, 2018 at 6:43

4

Solved

I need to watch when certain processes are started or stopped on a Windows machine. I'm currently tapped into the WMI system and querying it every 5 seconds, but this causes a CPU spike every 5 sec...
Crispas asked 5/12, 2008 at 21:26

1

Solved

I am new to C# and have to develop a Windows Form application in C#. This application should track the following things. Monitor the CD / DVD drives both external and internal. Monitor the files ...
Evasive asked 1/2, 2018 at 10:45

5

Solved

How can I get the Service Account name for the SQL Agent service for a particular SQL Server (SQL 2005). Is it possible to get using SQL statements or WMI ?
Nasya asked 6/9, 2011 at 18:25

5

I have a workgroup of web servers running Server 2008 R2 in which I'm trying to manage a script that checks the disk space of all of them. I had set this up a few months ago when the servers were b...
Dreg asked 7/3, 2011 at 20:0

6

Solved

How do you query for WMI namespaces? So I know about WMI namespaces because I read that they exits and I know I can connect to say: root\cimv2 My question is what if I didn't know what namespac...
Namaqualand asked 16/3, 2011 at 22:15

3

Is there anyway to check the status of service using vbscript ? I would like to have a function for each possible service state : LINK Any help would be great. I did write a function for checking i...
Ernestineernesto asked 12/1, 2014 at 11:45

4

Solved

After playing around with querying Win32_Product to find a software version, I couldn't understand why the results were so dog-slow. As much as 15 times slower than querying Win32_service or Win32_...
Rhinoscopy asked 12/8, 2014 at 15:37

2

I'm trying to do the following query in WMI: SELECT ProcessID from Win32_Process where CommandLine='C:\Windows\system32\calc.exe' But I got an "Invalid query" error. I also tried with: SELECT P...
Ballplayer asked 16/12, 2013 at 16:19

1

Solved

I happened to see the following portion of code here. $Obj.ExecNotificationQueryAsync($hObj, "SELECT * FROM __InstanceCreationEvent WITHIN 0.5 WHERE TargetInstance ISA 'Win32_Process'") $Obj.Exec...
Lunneta asked 6/3, 2015 at 11:33

2

Solved

Thanks to some other helpful StackOverflow questions, I've found a way to query WMI for device drivers. However, it seems to me that the data is being stored in disparate places that don't join tog...
Rasure asked 22/1, 2015 at 0:5

3

Solved

I'm not looking for User SIDs. I'm looking for the computer SID, which active directory would use to uniquely identify the computer. I also don't want to query the active directory server, i want t...
Deming asked 28/6, 2010 at 14:48

3

I found Determining the network connection link speed and now I am trying to correlate the data from Win32_PerfRawData_Tcpip_NetworkInterface with Win32_NetworkAdapter (or Win32_NetworkAdapterConf...
Nationalist asked 2/12, 2009 at 12:21

1

Solved

Dim strComputer, objReg, ScriptName, strKeyPath, strValueName, strValue Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!...
Crimpy asked 9/4, 2014 at 12:59

4

Solved

My current code looks like this: define ( 'CPU_NAME', 'remote_server' ); $obj = new COM ( 'winmgmts:{impersonationLevel=impersonate}//' . CPU_NAME . '/root/cimv2' ); if ( is_object ( $obj ) ){ $p...
Pottery asked 3/10, 2010 at 5:28

2

Solved

Deos anyone know a way, in C++, to get a complete list of every property available within a given WMI class? I've found some similar questions here on SO, but they all use Powershell, VB, or C#.
Febri asked 24/9, 2013 at 21:52

1

Solved

I am having an issue querying WMI that has me completely baffled. The Application I am building utilizes WMI counters that are installed as part of the VMware View Agent into a VDI desktop. The cou...
Blubberhead asked 11/2, 2013 at 1:37

2

I am using inno setup to make an installation file. It required to pull local ip address (which I able to do by querying Win32_NetworkAdapterConfiguration) and check if a specific port is open for ...
Beggary asked 8/11, 2012 at 18:21

2

I'm trying to get the FreeSpace from the D drive of a remote computer. Towards the end, I'm getting a ManagementException was unhandled by user code "Not Found" This is the line that gives me the...
Profusion asked 26/9, 2012 at 14:9

© 2022 - 2025 — McMap. All rights reserved.