Questions tagged [wmi-query]
Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language).
3
questions
2
votes
1
answer
92
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
1
answer
3k
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
1
answer
3k
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 ...