Visual Basic.NET
  Home arrow Visual Basic.NET arrow WMI Programming with Visual Basic.NET: Com...
Iron Speed
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

WMI Programming with Visual Basic.NET: Combining with Windows Services
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 9
    2005-08-08

    Table of Contents:
  • WMI Programming with Visual Basic.NET: Combining with Windows Services
  • Designing and preparing the essentials
  • Implementing the logic
  • Adding the installers and setup
  • Installing, executing and testing the windows service

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    WMI Programming with Visual Basic.NET: Combining with Windows Services
    (Page 1 of 5 )

    In my previous article, part seven of this series, we looked at permanent subscribers to the WMI events. This article extends the concept of permanent subscribers to the Windows services level and integrates it with SQL Server database.


    You can download the zip of entire Visual Studio.NET solution (developed for this article) here.

    Pre-requisites for this article

    This article is bit advanced in its implementation of .NET technologies.  It not only focuses on WMI, but also a bit on Windows Services and ADO.NET. To work with this article, you should be familiar with the concepts of Windows Services and implementations as well. I will not explain the concept (or architecture) of Windows Services in this article, as it is beyond the scope of this series. If you really don’t know what a Windows Service is and how to implement it in .NET, I request you not to work through this article until you become familiar with those concepts.

    In general, if you are a beginner to .NET programming, certainly you should be working with ADO.NET to connect to databases. Since this article also uses ADO.NET as another technology, you should be familiar with this one as well. But somehow you can understand the code even if you don’t know ADO.NET, as I am working with only basics.

    In brief, the goal of this article is to integrate WMI events with a Windows Service and get them logged into a database. I am quite sure that this article will be very helpful in debugging or monitoring a full-fledged Distributed Application Design. Not only that, this article would also help system administrators to audit almost all the activities of every host present in a network very easily. 

    You can also extend this article from Windows Services to Web Services (or even .NET Remoting), making the system monitoring available to being accessed through the Internet or even through mobile devices. You can further extend it to notify an administrator with an email, based on a particular event. Again, the sky is the limit for extending this article.

    Another important issue is that, you should have understood all the issues of WMI events, which I discussed in part six and part seven of this series. If you don’t know understand the concept of a WMI event, I don’t think you can understand this article.

    So, guys, let’s start joyfully.

    More Visual Basic.NET Articles
    More By Jagadish Chaterjee


       · Hello guys, this is my article on working with WMI together with Windows Services....
       · Very well explained and detailed article. I have tried to build services and the...
       · Hi, can you try with some simple windows services and then go for the article!
     

    VISUAL BASIC.NET ARTICLES

    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...
    - Programmatically Controlling Windows Fax Ser...
    - Focusing on Forms and Menus in Visual Basic
    - Manipulating Forms with the Windows Forms Li...
    - Basics of the Windows Forms Library
    - Forms, Controls, and Other Useful Objects
    - Implementing OOP to Develop Database Oriente...
    - Using Themes and Skins for Personalization w...
    - A Deeper Look at Personalization using Visua...

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway