Questions tagged [wmi-query]

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

545 questions
0
votes
1 answer

WMI query for getting performance of a running server

Which WMI query can I use to get the performance information of a running httpd service? hres = pSvc->ExecQuery( bstr_t("WQL"), bstr_t("SELECT * FROM Win32_PerfFormattedData_PerfProc_Process Where Name='httpd'"), …
karikari
  • 6,627
  • 16
  • 64
  • 79
0
votes
1 answer

WMI query for determining either the service is doing its work or not

I managed to query the httpd.exe service using WMI to check whether it is running or stopped. Here is the code that I am playing with: hres = pSvc->ExecQuery( bstr_t("WQL"), bstr_t("SELECT * FROM Win32_Process Where…
karikari
  • 6,627
  • 16
  • 64
  • 79
0
votes
1 answer

WMI is very slow

We have installed VisualSVN server 3.5 on windows server 2012 r2. When we browsing the repository in the VisualSVN Server Manager, WMI provide host process has started and it uses the very very less cpu usage(4%) even overall CPU usage is less(20%).…
0
votes
1 answer

Using WMI to search in MicrosoftDNS_AType records cause generic failure

All day long trying to fix 0x80041001 error, but it's still shows that error. Turning firewall off, UAC off, didn't work. reseting WMI service, trying this, Running as administrator, still nothing changed! It's my code: ManagementScope mgmtScope =…
0
votes
1 answer

Recursive file search using WMI Query and CIM_DataFile

I want to be able to query a remote windows desktop for a particular file however I have the following constraints: I cannot make the assumption that powershell remoting is enabled. I don't know the exact location of the file Time is a…
user2228313
  • 119
  • 1
  • 3
  • 11
0
votes
2 answers

How do I filter out data from a string in Python

I have a program that runs a WMI query through PowerShell and gets the output and stores it in a string, then prints it. When I run it I get this blob of text. I can make out the values I want (Name, SensorType, and Value). But there's a ton of…
gman1230321
  • 105
  • 1
  • 2
  • 10
0
votes
1 answer

BizTalk 2016 wmi query failing

In our Powershell deployment scripts we terminate inflight instances identified by the following query: get-wmiobject -namespace Root\MicrosoftBizTalkServer -query "SELECT * FROM MSBTS_ServiceInstance WHERE (ServiceClass = 1 OR ServiceClass = 64)…
0
votes
1 answer

ManagementObjectSearcher - Cross Reference information from two classes (c#)

OK..Lets see if I can make this question make any sense :/ I have made a query that allows me to see NetworkAdapter class information for a selected NIC. I somehow want to include information from the NetworkAdapterConfiguration class in the same…
Dylan Jackson
  • 801
  • 1
  • 17
  • 33
0
votes
1 answer

Getting Windows Audit Policies using Python

I am working on creating a script to get information about windows machines and I would like to get the audit policies. I have tried: import subprocess proc = subprocess.check_output("auditpol /get /category:*").decode('utf-8') print (proc) And an…
Allie Hart
  • 149
  • 1
  • 3
  • 14
0
votes
1 answer

WMI Query SID to User

I'm looking for a simple WQL query that can convert an Windows user SID to a username. There are multiple methods that show this being done through wmic or powershell, I am using a python module which is capable of running WQL queries against some…
JaminB
  • 778
  • 3
  • 9
  • 20
0
votes
1 answer

How to use WMI to get GPU info?

I want to use wmi to get the GPU info in a program written in Go.I know use the https://godoc.org/github.com/StackExchange/wmi can do it,and here is a function named "func Query".But, i don't know how to edit the "query string".Somebody can help me…
DK AL
  • 1
  • 2
0
votes
2 answers

VBScript to get DC SYSVOL information (path, size, free space)

I am obtaining information about my DCs and need to pull in the path to sysvol, total size, and free space remaining. Cant his be done in VBScript and if so how? Thanks
Shawn
  • 331
  • 2
  • 3
  • 16
0
votes
1 answer

WMI query execution thorough powershell

Facing below variations when I execute a WMI query from WMI browser and powershell From WMI Browser Query: Select Caption from Win32_TimeZone Output: Caption | StandardName [UTC+530]Chennai,Kolkata, Mumbai,…
Akshobhya
  • 169
  • 2
  • 16
0
votes
0 answers

WMI query to check status task scheduler remotely

I need WMI query to check status task scheduler remotely. Is there any way to do it ? Actually we want to monitor server's task scheduler statuses remotely.
0
votes
1 answer

WMI Queries is not working in service mode for Network drive(UNC path) in C++ but working in console mode

Trying to convert the network drive or mapped drive(Z:) to its UNC path( 192.168.x.x\Shared). Tried different ways like WNetGetUniversalName and WNetGetConnection, but getting error like ERROR_NOT_CONNECTED or ERROR_CONNECTION_UNAVAIL. then elevated…