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
0 answers
Receiving invalid data via WMI
I've had a script running for the better half of a year now that checks for disk space, should it be low it sends out an email been working just fine.
Today I received an alert saying that that Disk space was at 0gb.. I logged into the server and…

JonnyBoy
- 417
- 1
- 6
- 16
0
votes
0 answers
WMI query returns hard drive temperature as 0, how to solve this?
I'm having trouble getting the right temperature out of a certain hard drive on my application using a WMI query, somehow one of my two hard drives gets 0 back as temperature, while the other one returns a regular temperature such as 34 degrees…

user1676874
- 875
- 2
- 24
- 45
0
votes
2 answers
How to fetch registry path from EventArrivedEventArgs object
I try to watch the registry events via WMI. I use the below query to watch any events inside HKLM\softwares
WqlEventQuery query = new WqlEventQuery(
"SELECT * FROM RegistryTreeChangeEvent WHERE " +
"(Hive =…

Muthukumar Palaniappan
- 1,622
- 5
- 25
- 49
0
votes
2 answers
Unable to read remote system event logs
I am trying to query event logs through WMI Tester but the result is empty

Chandrashekar Jupalli
- 337
- 3
- 15
0
votes
1 answer
WMI Event Watcher Performance Problems
I've written some WMI code that works really well on most machines. However on some machines (nearly all SSD based macs) this code causes a HUGE performance problem. It causes the WMIPrvSe process to keep hitting I/O Other. If you run another app…

Goz
- 61,365
- 24
- 124
- 204
0
votes
1 answer
LocalPrintServer.GetDefaultPrintQueue() does not work in windows service
I would you like popup a message box when the user print everything.
The following code can done the job well:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using…

The KNVB
- 3,588
- 3
- 29
- 54
0
votes
0 answers
FindNextPrinterChangeNotification vs win32_printjob JobId
I'm trying to get print jobs details generated from windows (AD based) print server which is serving more than 100s of client machines.
As I need to store some other details along with job details, used FindNextPrinterChangeNotification to get…

Murugan Durai
- 143
- 3
- 12
0
votes
2 answers
Conversion of PerfRawData Values into Performatted data -WMI
I need to convert PagesPersec value from Win32_PerfRawData_PerfOS_Memory to PerfFormatted Data value .How to convert PerfRaw data values from WMI Perfomance counters to PerfFormatted Data values .Is there Standard Formula available recommended by…

psramkumar
- 1
- 1
0
votes
1 answer
get windows user first and last name
I'm working on an application which as an interface requiring the user's name to be provided as components (first, middle, last).
When setting up a user in AD the user dialog has text boxes for (first, middle, last) and then combines these into a…

denver
- 2,863
- 2
- 31
- 45
0
votes
1 answer
How can i display results from a console based query in a textbox?
I am trying to take this Console code and return a result in a textbox called Bitlocker. The console code seems to work just fine as long as I run in Admin. I have never tried retrieving console results and diplaying them in plain text before so Im…

Joe Pearson
- 105
- 10
0
votes
1 answer
Changing Mobile Broadband Device Properties via WMI or Registry?
Is it possible to change Mobile Broadband device settings via WMI or via the Registry?
I'm trying to create a simple interface that'll run on Windows 10 (eventually running it on Windows 7, 8, and XP Embedded) to change just a few settings,…

Gorlon
- 23
- 5
0
votes
2 answers
Is there any Faster method to do WMI query from Powershell ..?
Wrote a small script to find the number Multipaths from the windows servers using WMI query. It works well for the servers which can connect directly without any issue. But if one server is pingable but not able to reach through WMI script, it takes…

rpr
- 111
- 2
- 5
- 16
0
votes
0 answers
Monitoring SQL Server 2008 with WMI
Currently I have the following query to monitor a parameter of SQL server 2008 using PowerShell.
SELECT cntr_value as Mem_KB
FROM sys.dm_os_performance_counters
WHERE counter_name = 'SQL Cache Memory (KB)'
I would like to monitor the same with…

Sebastian Xavier
- 2,499
- 7
- 27
- 41
0
votes
0 answers
CreatePartition Help In PowerShell
Can any one give any example of createPartition wmi invocation.
I want to create a GptType partition disk of maximum size.

Pbox
- 85
- 1
- 1
- 11
0
votes
1 answer
Batch Store WMIC Query with multiple conditions into variable
I am using this line in a batch script which successfully stores a user's SID value into a variable called SID
FOR /F "tokens=1,2 delims==" %%s IN ('wmic path win32_useraccount where name^='%_curruser%' get sid /value ^| find /i "SID"') DO SET…

user3099768
- 3
- 1
- 4