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
Getting the group users in computer using AutoIt
I am trying to get all the group users in a computer. If I do this manually, my way is to go to Computer Management to get the list of Local Users and Group, and from there, I can get the list of Users and Group.
This is my code and I use…

Karla Mae Z. Jaro
- 71
- 1
- 12
0
votes
2 answers
SQL Query to select files with specific extensions on Local Drives only
I'm looking for a way to get files with specific extensions on the local drives only from WMI database.
SELECT *
FROM CIM_DataFile
WHERE Extension = 'vbs'
AND Drive = UCASE(SELECT Caption
FROM Win32_LogicalDisk
…

user2629636
- 103
- 4
0
votes
1 answer
Calculating Private Working set memory in perl
I'm basically trying to query private working set of a process in perl.
I have already refereed this post.
The solution works great on win8/8.1 but for some reason the following line returns nothing on win7x64 and I have tried using IDProcess…

user3354265
- 777
- 1
- 10
- 26
0
votes
1 answer
Powershell - Get Logged in User on Remote Host and Store Username as Variable
Trying to use a Get-WmiObject to get the currently or last logged in username on a remote pc, then store that value to a variable so I can later use it as part of a path.
I try this, but my variable just comes up blank. Any ideas? Thanks in…

superKing
- 79
- 1
- 6
- 14
0
votes
2 answers
How do I ignore Windows Defender when calling SecurityCenter2?
I'm working on a script to detect whether or not there is an antivirus solution running on a Windows machine. When running on Windows 8 I'm getting false positives that antivirus is disabled when running a third-party antivirus solution due to…

Mojoscream
- 51
- 1
- 12
0
votes
0 answers
How do I run two Powershell WMI queries simultaneously?
I would like run two commands simultaneously. Currently I am facing an issue with running the commands serially as the perfmon data is not matching the stats.
Below is the idea.
I am running wmi_processes to get the name from the command line. As…

Linu1988
- 49
- 3
- 8
0
votes
2 answers
Get the row count of WMI Query in C++
the following vbscript gives the number of rows returned by the WMI query.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM…

Arun
- 2,247
- 3
- 28
- 51
0
votes
1 answer
WMI win32_physicalmedia code is crashing in windows 8.1
Hello I'm using Visual C++ 2010.
I am trying to extract hardware details using wmi and everything is working fine but when i tested the application in windows 8.1 the application crashes and it turned out to be from the win32_physicalmedia…

user3735032
- 73
- 1
- 1
- 8
0
votes
1 answer
Powershell: Dynamically Convert Get-WMIObject to PSObject
The majority of code examples I can find for working with Powershell and C# involve the use of PSobjects to return data from the Powershell scripts. A large amount of examples on creating a PSObject involve taking data from Get-WMIObject and…

user3738802
- 23
- 5
0
votes
1 answer
How to use concat() method in wql?
I am develop wmi application to get windows logs by using WQL query.
How to use CONCAT() method in that query.
Input WQL Query :
wmic -U XXX%XXX //XXX "Select CONCAT(Category, '|DHCP') from Win32_NTLogEvent where TimeWritten > '06/04/2014 13:59:00'…

Kannan Arumugam
- 1,119
- 2
- 18
- 27
0
votes
2 answers
How do I SSIS WMI Event Watcher Query for a network folder?
What I'm trying to do in SSIS is have a WMI Event Watcher Task which watches a folder for a file to be created, then does something with it. The primary part is the "watching the folder for file creation".
I have a network folder (full path):…

dotnetN00b
- 5,021
- 13
- 62
- 95
0
votes
0 answers
Can i use WMI queries against my application for getting a custom data?
I have an application that complicated with server and clients..
Is there a option to using WMI queries for getting a data from my server?
I see that can using against performance counters, but the performance counters return numeric values, and i…

David Michaeli
- 367
- 5
- 26
0
votes
1 answer
Why does SWbemServices.ExecQuery return more properties than requested?
I'm getting unexpected results from the below JScript code. The Index property is returned even though I've only requested MACAddress.
What's going on here?
JScript:
var wmi, col, itr, obj;
wmi = GetObject('winmgmts:');
col = wmi.ExecQuery('SELECT…

user710307
- 13
- 4
0
votes
1 answer
Get performance data from WMI
Is there any information how I can get these values from WMI using the SQL like quires:
OS uptime
CPU load
RAM utilization
HDD utilization

Peter Penzov
- 1,126
- 134
- 430
- 808
0
votes
1 answer
Error while fetching null valued array columns in WQL (WMI Query Language)
I'm little new to world of WQL (WMI Query Language). I'm trying to query ConfigMgr 2012 using WQL but I'm facing an error when I try to mention the name of a column in the comma separated select clause. The error happens only when the column being…

RBT
- 24,161
- 21
- 159
- 240