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...
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...
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...
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...
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...
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 ...
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...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
1
Solved
Dim strComputer, objReg, ScriptName, strKeyPath, strValueName, strValue
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!...
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...
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#.
1
Solved
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...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.