wmi

'proper' & reliable way to get all installed windows programs in Python?

I've seen numerous ways of retrieving installed programs on WinXP+ in python. What is the proper and most robust way of doing this? Currently I'm accessing HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall and reading each of the keys from there to get a list. (I've been told this isn't the proper way of doing things) I've...

Internal works of WMI?

I'm curious as to how WMI works. Particularly, I am currently using WMI to query for the physical monitors via "Select * from Win32_DesktopMonitor" as it has consistently given me the correct result across multiple platforms since I want to know the count of physical monitors and not virtual monitors returned by functions like GetSystem...

how to run a wmi query in c

i know how to this in .net i want to know how in pure c and not c++ thanks. ...

SelectQuery eating up 100% CPU

I am doing a query for all the users on the machine and when it executes it grabs 100% CPU and locks up the system. I have waited up to 5 minutes and nothing happens. In the Task Manager wmiprvse.exe is using all the CPU. When I kill that process everything returns to normal. Here is my code: SelectQuery query = new SelectQue...

Use WMI to create IIS Application Directory with C#

We have a web application that is installed on Windows 2003 and Windows 2008 systems. In the past, our install code used ADSI to create a couple of application directories in IIS, but this requires the IIS 6 management components to be installed in Windows 2008. I have been trying to use WMI to create the application directories so we ca...

JBoss and WMI using Jacob and Java

Has anybody ever had issues with a Java application that uses Jacob to call WMI queries, with that application being deployed to JBoss? JBoss locks up around the WMI calls with no further information available. ...

c# antivirus info

in c# for vista+ not WMI doesn't work for vista+ How can I pull the name of the installed anti virus from WSC and if the virus database is updated or needs updating? Thanks ...

how to get cpu temperature in c/c++/vb.net/c# ?

how to get cpu temperature in c/c++/vb.net/c# ? i already found this link Get CPU Temperature in .Net but i'm not sure if it really works! also i would like to know if there is a way other than using wmi queries. ...

How to terminate child processes when a c# console application is aborted?

I have a console application that spawns other win32 processes using WMI ManagementClass.I have a requirement when a user kills the console application through proc explorer or by pressing ctrl+c ,the application should terminate all the child processes it created.What is the best way to achive this? ...

Get corresponding physical disk drives of mountpoints with WMI queries?

Is there a way to retrieve a connection between a mountpoint (a volume which is mounted into the file system instead of mounted to a drive letter) and its belonging physical disk drive(s) with WMI? For example I have got a volume mountpoint on a W2K8 server which is mounted to “C:\Data\” and the mountpoint is spreaded on the physical di...

Starting with window application for retriving list of software and hardware installed on remote pc

I want to create an application that can give me a description of all the softwares and hardware installed on a computer that is connected through a Local Network. In Hardware Description - I want something like the list shown in Device manager and in software description i want a list of all the softwares installed in remote pc as show...

IIS 6 ServerBindings with WMI and Powershell v2

I've long had a bunch of VBS automations for IIS 6, including one that gets/sets complex server bindings on several farms of paired servers, each having dozens of apps, each app having 3-12 host headers. Each app has hostname, hostname-fullyqualified, and Disaster Recovery enabled hostname, so they can be a mess to maintain manually. I...

Retrive List of hardware and software installed on remote machine in LAN. Which DLL to Use ?

I am trying to retrieve a list of all hardware like Device Manager and Softwares installed like in "Add and Remove Programs" on a remote system in LAN. Is it their any 1 or 2 dlls to include instead of all dll for each hardware. ? ...

Permissions issue when publishing to WMI under network service account

I'm adding WMI publishing to a .net framework 3.5 based windows service that is running under the 'network service' account. According to a document I came across on MSDN, the 'network service' account should by default have WMI publishing permissions. ("By default, the following users and groups are allowed to publish data and events: ...

Programmatically getting SQL Cluster Virtual Name

I have written a Windows service to collect information from all of our SQL servers. The service gets installed onto each server, and utilizing WMI and SMO, inserts relevant system information back to a central database. In order to get the SQL information, I use the following c# code: List<Server> sqlServers = new List<Server...

Suspicious value from WMI Win32_PerfRawData_PerfOS_PagingFile PercentUsage figure.

I've written a little VBScript program to query the page file usage under Windows XP (eventually 2003/2008 Server as well) but the figures I seem to be getting are bizarre. This is the program: Set wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") for i = 1 to 10 Set qry1 = wmi.ExecQuery ("Select * from Wi...

In WMI, can I use a join (or something similar) to acquire the IisWebServer object for a site, given server name and deployment location

Given a server name and a physical path, I'd like to be able to hunt down the IISWebServer object and ApplicationPool. Website url is also an acceptable input. Our technologies are IIS 6, WMI, and access via C# or Powershell 2. I'm certain this would be easier with IIS 7 its managed API. We don't have that yet. Here's what I can do: ...

What is the difference between Microsoft.Web.Management and System.DirectoryServices in .Net 3.5?

Hi there, I want to control, configure and manipulate IIS 6.0 and later versions via ASP.Net web application using WMI and .Net. Can i use a mix of Microsoft.Web.Management and System.DirectoryServices? Is there a difference between the two? Will System.DirectoryServices be supported for later versions of IIS. i.e IIS 7.0+ ? Where is...

Which is better for IIS administration in ASP.Net : WMI or ADSI or Managed API? and what's the difference?

Hi there, I am working on Configuring and manipulating and controlling IIS 6.0 and later versions using ASP.Net based web application. I am considering WMI, ADSI, Managed API as my options. I have a target Windows System WIN2k3 or later versions. The choice of language is C# and the application has to be built using ASP.Net. This art...

Access Denied errors accessing IIS WMI provider from ASP

Morning, I have a Windows 2003 server running IIS 6 and have some scripts that do automated setup and creation of websites. They are not working on a new server I cam commissioning (they already work happily on 3 other W2K3 servers). The problem appear to boil down to WMI security on the IIS provider. The ASP code below represents th...