Introduction:
In this article i am going to explain about,what is windows instrumentation,and how we can use this in c/C++ and microsoft visual basic based environments.
Main:
What is WMI?
Windows Management Instrumentation (WMI) is the Microsoft implementation of Web-based Enterprise Management (WBEM), which is an industry initiative to develop a standard technology for accessing management information in an enterprise environment. WMI uses the Common Information Model (CIM) industry standard to represent systems, applications, networks, devices, and other managed components.
The ability to obtain management data from remote computers is what makes WMI useful. Remote WMI connections are made through DCOM. An alternative is to use Windows Remote Management (WinRM), which obtains remote WMI management data using the WS-Management SOAP-based protocol.
WMI provides a uniform interface for any local or remote applications or scripts that obtain management data from a computer system, a network, or an enterprise. The uniform interface is designed such that WMI client applications and scripts do not have to call a wide variety of operating system application programming interfaces (APIs). Many APIs cannot be called by automation clients like scripts or Visual Basic applications. Other APIs do not make calls to remote computers.
WMI .NET Architecture:
Classes in the System.Management namespace interact with the WMI object manager to send and receive data to the WMI repository and dynamic objects supplied by providers. The methods, properties, constructors, and other members of the System.Management namespace are used by Web forms and other management applications.
System.Management is available in Asp.Net 2.0 above versions,the diagram illustrates the common architecture of WMI .NET application.
Clients that access data through WMI can be:
Windows Forms
Web Forms/ASP.NET
Management applications, such as Management Operations Manager (MOM), Systems Management Server (SMS), or HP OpenView.
Providers of management data can be:
Original WMI providers that expose system or application data, such as the Win32_Provider or the System Registry Provider. For more information, see “Win32_Provider” and “System Registry Provider” in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.
Windows Forms and Web Forms/ASP.NET Page Framework applications that expose management instrumentation about themselves to other clients, such as SMS.
Conclusion:
Hope this helps,
Happy Coding.
References:
msdn.microsoft.com
