Questions tagged [wmi-query]

Query over the content of CIM repository on Windows Machines that uses WQL (Windows Management Instrumentation Query Language ).

545 questions
2
votes
1 answer

WMI querying issues in Python

I've recently been working on a Squish test script, and trying to do something like what's described in the solution at: Total memory used by Python process? The relevant snippets from my code are as follows: def measureMemory(): w =…
Anon.
  • 43
  • 5
2
votes
2 answers

Execute a process in a remote machine using WMI

I want to open process pon remote machine, this remote machine is inside local network. I try this command and in the remote machine nothing happen, this user that i connect with have administrators rights. Both machines running Windows 7 static…
user1860934
  • 417
  • 2
  • 9
  • 22
2
votes
0 answers

Tracking open files using WMI Notification events

I've created an internal web page for my company that lists open files via ADSI objects and while it works well, it takes time to load and is difficult and time-consuming to filter, if the filter works at all. The core of this PHP script…
Aaron Mason
  • 310
  • 3
  • 11
2
votes
1 answer

Monitor Drive. Using VB Script

I want to monitor a drive for file changes, using VBScript. I have the below code. It works fine for InstanceCreationEvent and InstanceDeletionEvent. But InstanceModificationEvent is not happening. From googling I got to know we need to use…
Gokul Nath KP
  • 15,485
  • 24
  • 88
  • 126
2
votes
1 answer

How to handle management exception for WMI

i am reading processor's details WIN32_PROCESSOR using WMI. Currently i am trying to read these property:SELECT CAPTION,L2CACHESIZE,L3CACHESIZE FROM WIN32_PROCESSOR. So that i am working with below code: static void Main(string[] args) { string…
Mohammad Arshad Alam
  • 9,694
  • 6
  • 38
  • 61
2
votes
1 answer

WMI query returns nothing

I am making a query with WMI to check for a particular drive letter, if it does not exist then I want to run a method that will create it with specific settings. Now the problem I am facing is when I send a test query to see if the drive letter…
nGX
  • 1,038
  • 1
  • 20
  • 40
2
votes
1 answer

How to convert a ManagementObjectCollection object into a format readable by Powershell?

I am trying to retrieve logical disk information from remote machines using Daniele's custom get-wmiobject function due to my need for a timeout parameter. The function works perfectly fine, but I also want to store the $results in a variable and…
deutschZuid
  • 1,028
  • 2
  • 15
  • 33
2
votes
1 answer

Retrieving OS Name of MS Windows Platform

I need to get information on OS Name of MS Windows Platform. I've googled it and found GetVersionEx would do it. But I just need OS Name, is there any simplest way of achieving it? not using system() Guide me thanks... I am using this code using…
highlander141
  • 1,683
  • 3
  • 23
  • 48
2
votes
1 answer

TimeStamp_Sys100NS returning null from Win32_PerfFormattedData_PerfProc_Process wmi

I am trying to return the TimeStamp property using a wmi query and getting an object reference error. When I look in quickwatch, the property itself is null. I've seen examples of this on the web and can't figure out why this one property is…
Jeffrey Easley
  • 306
  • 2
  • 6
  • 17
2
votes
0 answers

How to get domain user SIDs from local machine when enumerating local group membership

I am enumerating a local group on Windows domain-joined machines. I'm using WMI to do this as it is very remote & supply-credentials friendly. In my scenario my code is always running remotely and as an untrusted principal which means I must be able…
Eric Fleischman
  • 1,168
  • 6
  • 8
2
votes
5 answers

Batch WMIC redirecting output and wrapping into variable

I'm trying to use WMIC to remove some old printers on our older print servers if I use the below syntax from the command line it works WMIC PRINTER WHERE "SERVERNAME LIKE '%%OLDSERVERNAME%%'" DELETE I was asked to see if I could make it replace the…
Matt Hamende
  • 139
  • 2
  • 4
  • 16
2
votes
1 answer

How to query Folder Size in remote computer through WMI and C#

How to query Folder Size in remote computer through WMI and C#. I need to find the each User's folder size in C:\Users in remote System through WMI. I tried Win32_Directory , CMI_DataFile but not able to find the desired answer. Please help!!
Anoop
  • 41
  • 1
  • 4
2
votes
2 answers

Issues in Finding Windows Activation through SoftwareProductLicensing Class

I am using the below code to determine the activation of the Widnows7. I am getting 7 instances/product. I am not clear which product refers to original Windows 7. I am unable to find documentation on to check which instance to determine whether…
Anoop
  • 41
  • 1
  • 4
2
votes
1 answer

Windows API equivalent to "WMIC QFE Get"

I am a newbie in C++ and currently working to get Windows Hotfix/Patch information in C++ DLL. I have evaluated the following ways: By executing a sub process in C++ code and running wmic qfe get and read all the data. By using the C++ APIs to…
TechyHarry
  • 301
  • 2
  • 8
  • 25
2
votes
0 answers

Not able to get UniqueId of CPU using WMI classes c++

In an application, it needs to retrieve, a system specific UniqueId. SO that I have tried to retrive the UniqueId of the CPU. and I am using WMI class property to retrieve that. But on trying to retrieve the 'UniqueId' property of win32_processor…
JijeshKV
  • 670
  • 2
  • 7
  • 26