Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language ).
Questions tagged [wmi-query]
545 questions
2
votes
1 answer
WMI through Java using J-Interop
I am new to WMI and using J-interop lib for COM communication through Java...
I have a requirement to get Physical memory data from remote system.
I have following code : it provides some of the data but have some flaw in it like I have 2 GB memory…

PSisHere
- 53
- 2
- 5
2
votes
1 answer
Is there any way to check if a (UNC path) volume is a Windows DedupVolume or not?
I wanted to find out if a given volume has Data Deduplication enabled or not.
For a local volume this is straightforward using the WMI query:
select * from MSFT_DedupVolume where Volume='E:\\MountFolder\\DedupVolume'
But for a UNC path as volume…

Naveen Kedilaya
- 118
- 1
- 7
2
votes
2 answers
WMI Win32_VideoController RAM 4GB Limit
I use WMI Win32_VideoController, AdapterRAM property to read the display adapter RAM size in Windows 10, but the problem is that the value is limited to 4GB maximum.
On a display adapter with 11GB I still get 4GB (and yes I use int64 for the result,…

Mario
- 13,941
- 20
- 54
- 110
2
votes
0 answers
wmi.x_access_denied:
I have a python script which extracts the hardware info of all my windows workstation in my network (for saying let it be client machines)
aim: to extract the hardware information of all the windows machines on the network.
my setup:
python…

praveen
- 179
- 1
- 3
- 16
2
votes
1 answer
Select Top 5 or Limit to 5 entries on Get-WmiObject Powershell query
I'm perfoming queries on the event viewer (Win32_NTLogEvent)
Is there anyway to just select the top 10 or max 5 return events
I had already try with TOP, LIMIT or ROWCOUNT but nothing works
Get-WmiObject -Query 'SELECT * FROM Win32_NTLogEvent WHERE…

daniel arias
- 47
- 1
- 4
2
votes
1 answer
PowerShell: how to unregister orphaned WMI events
The following block of code will generate 100 WMI event subscriptions. This particular case is just an example, and will write a string to a file (100 times) whenever a keyboard is plugged in:
$KeyboardQuery = "SELECT * FROM __InstanceCreationEvent…

jdgregson
- 1,457
- 17
- 39
2
votes
1 answer
WMI query too slow
I need get Office is Activated or need activation and i use normal query in WMI:
ManagementObjectSearcher searcher =
new ManagementObjectSearcher("root\\CIMV2",
"SELECT * FROM " + wmi + " WHERE…

Marcus J.Kennedy
- 680
- 5
- 22
2
votes
0 answers
Programatically access Windows Password Policy settings
I am developing a .NET website that is using Windows Authentication.
I have a requirement to make website password policy exactly same as the Windows password policy which is under: (gpedit.msc)
Computer Configuration\Windows Settings\Security…

Matthew C
- 616
- 3
- 10
- 18
2
votes
1 answer
Delphi Wmi Query on a Remote Machine
We use WmiSet to do Wmi Queries on remote machines. It works very well in Delphi 2007 but is not currently available for Delphi XE.
I found some code to do Wmi Queries from a previous SO Question Use Wmi with Delphi. The code snippet provided in…

Pieter van Wyk
- 2,316
- 9
- 48
- 65
2
votes
2 answers
Unable to search directory subtree with WQL query
I am attempting to find all .PST files for the logged on user. However, I seem unable to add a path to 'Drive'. I would like to search all files under C:\users\ + $env:UserName
This command seems to find all PST files on C:\
$Res = Get-CimInstance…

tacosnooper
- 73
- 1
- 7
2
votes
0 answers
Access to WMI Namespace for non-administrator user
I have an issue - currently I have an IIS server that runs a number of Applicaiton pools that are monitored by running the following bit of Powershell Code:
$applicationPools = get-wmiobject -namespace "root\MicrosoftIISv2" -class…

TheDemonLord
- 327
- 1
- 2
- 15
2
votes
1 answer
how to read the contents of a log file that is retrieved using WQL using c++
I am new to WMI.I tried to implement a java application that get the WQL query from the user and executes the query using a c++ native program which i call from the java application using JNI.I managed to make the WMI calls and retrieve the data.
My…

D vignesh
- 97
- 1
- 7
2
votes
0 answers
Different order of hard drives in WMI queries
I'm doing a couple WMI queries to get information regarding the hard drives on a computer, specifically I'm using the namespaces Win32_DiskDrive, to get general hard drive information and MSStorageDriver_ATAPISmartData, to get SMART data.
My queries…

user1676874
- 875
- 2
- 24
- 45
2
votes
1 answer
cant connect to remote machine using WMI and Perl
I'm trying to write a script that will get event log information off of a remote windows machine using the win32::ole module and a WMI query. I can ping the machine but no matter what my WMI connection always fails using the ConnectServer() method.…

MilqueToasted
- 83
- 2
- 10
2
votes
0 answers
Windows 10 applications how to get child process main window handle from parent process
Hi in Windows 10 some applications like calculator ,if I run calc.exe it spawns the calculator.exe and and immediately exit cal.exe.my requirement is get the main window handle of this child process (calculator.exe)
For getting the child process…

Sandeep Ks
- 504
- 3
- 13