Asynchronous WMI Queries: Stay Away From Them

Thursday, September 20, 2012

So, it turns out that I have a WMI category on my blog. During the last couple of years I almost forgot about it, but WMI got a chance to wrap its poisonous tentacles around me again yesterday. Here’s another story. WMI is known for requiring lots of attention to security. To establish a WMI connection to a remote machine, you need to muck around with registry settings, DCOM configuration, group policy details, and other infernal things which we developers like to defer to someone else. But at least you know that once a machine has been configured...
tags:
no comments

WMI Provider Extensions in .NET 3.5 – Publishing Events and Advanced Topics

Wednesday, April 30, 2008

The previous posts in this series described various mechanisms of communication from the WMI consumer to the WMI provider – including read-only properties, read-write properties and methods. However, publishing events from a WMI provider is the only scalable option of providing changing contextual information as it occurs. Pulling the information on demand is not an option because it doesn’t scale. In this post, we will use the BaseEvent class or the attribute to publish events from a WMI provider. Publishing events from a WMI provider is not supported by the WMI Provider Extensions for .NET 3.5....
tags:
4 comments

WMI Provider Extensions in .NET 3.5 – Read-Write and Method Provider

In the previous post in this series, we have looked into implementing a rudimentary WMI provider which exposes read-only information.  In this post, we will make our provider more interesting by exposing read-write information. Read-write information is exposed by defining a read-write property and decorating it with the attribute. The , and requirements described in the previous post must still hold. The following code demonstrates a WMI provider which exposes a read-write property controlling the brightness of the screen. For demonstration purposes, the code to modify screen brightness has been omitted from the sample....
tags:
no comments

WMI Provider Extensions in .NET 3.5 – Introduction and Read-Only Provider

Windows Management Instrumentation (WMI) is a C&C infrastructure that is integrated within Windows. It provides three primary capabilities: Exposing state information regarding a configurable entity Invoking control methods on a configurable entity Publishing events from a configurable entity These facilities are a complete instrumentation solution for any Windows application, and multiple system components expose information through the use of WMI providers. This information can be consumed from a multitude of languages and technologies by WMI consumers, using a standard query language (WQL). Managed...
tags:
no comments