Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language ).
Questions tagged [wmi-query]
545 questions
0
votes
1 answer
What does DPCRate stand for in Win32_PerfRawData_Counters_ProcessorInformation WMI Class?
While studying Deferred Procedure Calls I came to some properties/data I could not find any information about on the web.
Using WMI I can read a lot of processor data, including DPC data.
Many properties of the…

Casady
- 1,426
- 3
- 19
- 39
0
votes
1 answer
SMS_Application WMI class's equivalent table in SCCM database
I'm having an AppModel application in my System Center Configuration Manager(SCCM) console. Please see below screenshot of the properties window of the SCCM application:
I need to know the value of 'Allow this application to be installed from the…

RBT
- 24,161
- 21
- 159
- 240
0
votes
1 answer
What are _Base properties in Powershell and how do I use them?
Take for instance the output of
gwmi Win32_PerfRawData_PerfDisk_PhysicalDisk
Among properties we find
PercentDiskTime
and
PercentDiskTime_Base
The documentation about this class at learn.microsoft.com makes no sense to me as it only states…

mfloris
- 361
- 4
- 16
0
votes
0 answers
Specified cast not valid on ManagementObjectSearcher
When I run the code below in a virtual machine then I'm getting the following exception on the .Get() function: Specified cast is not valid
For Each queryObj As ManagementObject In New ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard").Get()
…

Gforse
- 323
- 3
- 20
0
votes
1 answer
How to kill a threadpool thread in c# or a hung wmi query in c#?
I have c# code that uses the following
ThreadPool.QueueUserWorkItem(new WaitCallback(parseEventLogsWmi), new object[] { server } );
and I have a server that is causing the code to hang and eventually fail because the WMi query doesn't finish in a…

Bbb
- 517
- 6
- 27
0
votes
0 answers
How to find the recently modified file in a specified directory - WMI Query
I wish to search for recently modified text file which has Indicator in the filename on remote machine in same domain. The (UNC) path for the directory looks like
\\MachineName\Applications\Indicator\myFolder
I tried something like this…

m_beta
- 132
- 15
0
votes
1 answer
Powershell script to get IPv4 only
I'm trying to get IPv4 only from my computer which has multiple IPv4 addresses.
The output contains IPv6 also as below:
10.24.21.115
fe80::8029:4127:55a6:4328
192.168.0.2
fe80::ac59:de9a:c9db:b5d8
Tried filtering like $_.ipaddress -notlike "fe80*"…

Justin D
- 35
- 11
0
votes
1 answer
Parsing WMI AntiVirusProduct productState from \\.\root\SecurityCenter2
I'm trying to parse the result of productState from WMI query to \\.\root\SecurityCenter2\ for AntiVirusProduct. I'm on Windows 10 1803 (10.0.17134) and 1809 (10.0.17763) (yeah, two computers, twice the troubles...). I'm using C++/CLI but could be…

dom_beau
- 2,437
- 3
- 30
- 59
0
votes
2 answers
How to configure multiple queries in wmi_exporter?
I downloaded the "wmi_exporter-0.7.0-386.exe" from the link wmi exporter and ran the '.exe' file using command prompt.
Also i have followed the guidance link prometheus wmi guidance to run the command in the command prompt ,it executed as expected…

sivanesan1
- 779
- 4
- 20
- 44
0
votes
1 answer
How to target multiple remote nodes in WQL?
I'm creating a service in C# that polls remote hosts in an Active Directory domain on a regular interval with WMI. I've been using the System.Management.ManagementObjectSearcher but so far I've only gotten it to work with the local…

Hallur A.
- 299
- 1
- 3
- 13
0
votes
2 answers
In PowerShell, why does WMI query returns unwanted fields?
I'm writing a simple WMI query in the powershell ISE. I want to get just two fields, but I get more
Get-WmiObject -Query "select DisplayName, State from Win32_Service"
And what I get is a list of results, each has the next fields,
__GENUS …

tamir
- 81
- 2
- 9
0
votes
0 answers
Failing to access to WMI despite PrincipalPermissionAttribute
The principal permission succeeds but I still have System.Management.ManagementException: Access denied
public class HardDriveTemp
{
private const byte _tempAttr = 194;
private ManagementObjectSearcher searcher;
public HardDriveTemp()
…

Soleil
- 6,404
- 5
- 41
- 61
0
votes
1 answer
PowerShell Get-WmiObject : Out of memory error?
I am trying to learn to script with WMI object & PowerShell, so I'm not sure why the simple script below does not work for some server but work for the other:
$Server = 'PRODDB17-V'
Get-WmiObject -ComputerName $Server -Class Win32_LogicalDisk…

Senior Systems Engineer
- 1,061
- 2
- 27
- 63
0
votes
1 answer
WMI Problem on Win7
Anyone understand why the simple Powershell script below works fine under Windows XP but not under Windows 7?
Get-WmiObject -Class win32_logonsession | %{ get-wmiobject -Query "Associators of {Win32_logonSession.LogonID=$($_.LogonId)} where…

ServerMonkey
- 1,042
- 3
- 19
- 42
0
votes
2 answers
Access mobile device property data
Is there a way to access a mobile devices properties through C#. The purpose would be to display the device's serial number and iOS version for USB connected like an iPhone.
Using a WMI query like below access is given to the basic info accessible…

Salih Yasin
- 89
- 8