The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [wmi-query]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
47 views

Searching for matching shares

We're working on some code that involves validating certain UNC paths (specifically looking for things that appear to be subdirectories of other things), and we've gone back and forth on how to best ...
5
votes
1answer
2k views

Get information about the USB device from Win32_DiskDrive and Win32_LogicalDisk

I want to know the information about a USB device from Win32_DiskDrive and Win32_LogicalDisk. I use the following code: ...
2
votes
1answer
1k views

Escaping characters in a WMI Query

I've knocked up this code to allow me to query for specific service names using PowerShell. I'm after the executable (PathName) for the service, so the ...