547 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
216
views
Not equal operator not working with WMIC command in for loop of batch file
I wrote this batch to get the number of active processes given a certain command line value, but the not equal operator I use in the query to exclude WMIC.exe itself doesn't work, and the batch ...
0
votes
1
answer
44
views
How can I escape single quotes in a WMI query?
I have the following WMI query:
SELECT PartComponent FROM Win32_GroupUser WHERE GroupComponent = "Win32_Group.Domain='DOMAIN_NAME',Name='Opérateurs d'assistance de contrôle d'accès'"
The ...
1
vote
0
answers
48
views
Does WQL support parameterized queries?
I mocked up the following ASSOCIATORS OF query in C# to get the Win32_DiskPartition instance associated with a Win32_DiskDrive instance:
var deviceId = myDiskDrive.DeviceId;
var query = $"...
0
votes
0
answers
45
views
WMI Error attempting to get a list of printers
The code written in vb6 was working then just suddenly stopped and started throwing an error "Automation error -2147217406"
I don't know what could have caused it to stop working.
It's using ...
1
vote
0
answers
161
views
WMI Query: how to use the LIKE operator and % with Win32_GroupUser and Win32_group.domain to substitute computer name
long time reader, first time poster here. Also, this is my first time working on a WMI query project, so forgive me if I'm a bit naive.
I'm using a 3rd party tool (Tanium) to run a WMI query on a ...
1
vote
1
answer
99
views
How to subscribe to Event from Microsoft-Windows-NetworkProfile/Operational using WMI
I am trying to subscribe to Event 10000 in the Microsoft-Windows-NetworkProfile/Operational log using WMI, similar to how I am subscribing to events in the "Windows Logs/Application" log. ...
1
vote
0
answers
51
views
Am using a USB attached card reader and Is there a way to catch an sd card physical removal event after ejecting it programmatically?
I have a wpf application that detects the USB removable devices. We have another service(c# and C++) which takes care of the ejection of the drives. This service is being called by the wpf app.
When ...
1
vote
0
answers
151
views
PowerShell: CimInstance is impossible to remove. ObjectNotFound being raised even though it exists
Scenario
When I run:
Get-CimInstance -Namespace "root/subscription" -Query "Select * from __FilterToConsumerBinding"
...It clearly shows this CimInstance exists:
Consumer ...
0
votes
1
answer
736
views
Get SCCM Deployment's Tab properties using PowerShelll
I am trying to get an Application Deployment's all tab properties using PowerShell command. Please see below image to get more idea about what I am talking about.
[
Here, I need each setting of each ...
0
votes
1
answer
169
views
Win32_Services. Service retrieval through python from a remote machine
I am making a web application to monitor certain servers and part of that is monitoring specific services that should be running in those servers. I made a simple python script that tests the ...
1
vote
1
answer
535
views
Sorting WMI ManagementObjectCollection and GetProcessesByName
I need to get information about and manipulate instances of a third-party program with the executable filename strModule for which hundreds of instances are spawned. Each instance is spawned with ...
0
votes
0
answers
215
views
Is there a way to intercept the result of a WMI query?
I have this code that make a call to WMI using a query to fecth the display information:
var success = true;
List<Display> displays = new List<Display>();
// Query ...
0
votes
1
answer
222
views
WMI Permanent Extrinsic Event registration successful but consumer is never triggered
This has had me pulling my hair out for two days.
I'm trying to familiarize myself with WMI events, so I wrote some code to create a permanent extrinsic event. The filter, consumer and binding are all ...
0
votes
1
answer
1k
views
GWMI Win32_NetworkAdapterConfiguration - Display Description and IP Address but only IPV4 (Exclude IPV6)
relatively new to Powershell.
I'm trying to output the Description and IPAddress values from the following code, without it outputing the IPV6 addresses with it.
I want the Description and the ...
0
votes
0
answers
137
views
Quering with powershell hardware object "parent" is empty while its not in windows device manager?
I'm using a powershell query with gwmi to retrieve some info on usb controllers, i can get most of the infos from the object properties, but the property "Parent" is returning empty, while ...