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
Get-HPWarrantyEntitlement Import Registry Value to store in SCCM
Is there a way to pull this and export the information into a custom registry value so I can import into SCCM?
I've done some research and can't find any good information.

ThatGuy
- 11
0
votes
1 answer
VBA get Network usage from Network Interface
I have a problem with get Ethernet usage from Task Manager.
I have CPU and RAM memory usage and now I can't get Ethernet usage. I'll be very happy if anyone help me, thanks.
My code so far:
Private Type MEMORYSTATUS
dwLength As Long
…

response
- 9
- 7
0
votes
1 answer
Win32_Process wmi query giving priority with rage 0 to 32 but the method SetPriority need another range of values how i will match this
Win32_Process wmi query giving priority values from 0 (zero), which is the lowest priority to 31, which is highest priority.
But in SetPriority method give another type of priority
Idle (64)
Below Normal (16384)
Normal (32)
Above Normal…

Hisham Thorakkal
- 9
- 3
0
votes
1 answer
.NET WMI SCCM Application Install (remotel)
I'm trying to get SCCM applications to install/uninstall remotely via WMI queries from a .Net app.
Code I have is below:
Dim wmiLoc As ManagementScope = New ManagementScope("\\" & Target & "\root\ccm\ClientSDK", Options)
Dim wmiProcPath As…

Rathfon
- 3
- 1
0
votes
1 answer
WQL to get all log file names
How to get all log file names in WQL?
I tried these but they do not work and returns no key:
select logfilename from Win32_NTEventlogFile
select logfile from Win32_LogEvent

Eddy
- 67
- 7
0
votes
1 answer
vb.net WMI query to string
I have a little issue with WMI query.
I have to check if a certain property exists in a WMI query instance, the code i have done is:
Imports System.Management
Imports System.Management.Instrumentation
Public Class Form1
Private Sub…

Francisco
- 3
- 4
0
votes
1 answer
Issues with WMI
I'm trying to build an application that can monitor an application on another computer on the network to ensure that it is running. I'm trying to use WMI to do that. I am able to access the server with wmimgmt.msc so it doesn't seem to be an issue…

B Minster
- 331
- 3
- 16
0
votes
2 answers
Error connecing to remote PC to monitor running services
Wrote this in C#. Second console program I've done. It compiles and runs. But when it gets to connecting to the client. It says the client doesn't exist. I am connecting to my local machine in the code by PC Name. Even when trying to connect to a…

Das Nuk
- 46
- 8
0
votes
0 answers
Receiving Quota error and trying to separate output into sections
I have a script that outputs all printers on a print server into a text file then queries each printer in that list to get the permissions on that printer, I am having an issue getting the permissions split so that they are separated by printer name…

Slyons
- 117
- 4
- 20
0
votes
1 answer
WQL query for monitoring file change
I need some help since I am new to WMI Events.
I am trying to write WQL query for monitoring any changes that occure in a file
that is placed in specific folder(C:\Data)
I come up with the following query,but WMIEvent never occures.
SELECT * FROM…
Rumi
0
votes
0 answers
Checking folders with VBS associators
I need to find out is the path to the folder includes hidden folders or not.
Does anybody know how to do it? I have to use associators. Now my script only shows is the exact folder hidden or not and not checking the path to it.
Dim xdoc
Function…

Nick
- 11
- 3
0
votes
2 answers
SSIS WMI event watcher WQL Direct Input query
I'm using SSIS in Visual Stdio 2010 to check a specific folder for any csv files that are dropped in from a 3rd party where the filename begins with 'Despatch'. This is my WQL code:
SELECT *
FROM __InstanceCreationEvent WITHIN 5
WHERE…

Michael
- 2,507
- 8
- 35
- 71
0
votes
1 answer
Get LogonAs account value from a Service using powershell
I have a service running with a service account. I have a logged into the machine using administrator account. I want to find username using which the service is running.
I tried below
"Get-WmiObject Win32_Process -Filter "name='myservicename*'" |…

usr021986
- 3,421
- 14
- 53
- 64
0
votes
1 answer
convert value of TimeOfLastReset to date time
i'm running wmi query to get TimeOfLastReset and i get value like this 20171024080309.437500+420 how can i convert that to the date time
this my code to get TimeOfLastReset in vb.net
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" &…

Sutrasno Andre Wibowo
- 13
- 1
- 6
0
votes
0 answers
How to query WMI with VB and return version of program?
I am trying to put together some VB code that will query WMI at Win32_Product for installations of Java and then return its version number.
For example:
Java data in programs and features:
Name - Java 8 Update 91 (64-bit)
Version - 8.0.910.14
I…

Change
- 11
- 3