SunQuest
 
       Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 5 - WMI Programming with Visual Basic.NET: Com...
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 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    WMI Programming with Visual Basic.NET: Combining with Windows Services - Installing, executing and testing the windows service


    (Page 5 of 5 )

    Take the following steps to install the Windows service.

    o       From the Solution Explorer, right click on “WMIServiceSetup” and choose install.

    o       Click Next in the setup wizard.

    o       Choose the “EveryOne” radio button in the next screen and click on next (you can also choose your own location to install it).

    o       Click Next again to start the installation.

    o       After successful installation, it should give the message “WMIServiceSetup has been successfully installed.” Finally, click on close to end up the installation.

    Take the following steps to execute the Windows service.

    o       Go to Start -> Run.

    o       Type “Services.msc” and press OK.

    o       Within the list of Services you should be able to see “WMISvc”. Right click on it and choose “start” as shown in the following figure (Fig 6).

    o       To test whether it has successfully started or not, you can check it using “Event Viewer” from Administration Tools as shown in the following figure (Fig 7).

    How do you test it?

    • With the list of “Services”, try to stop and start (or even pause and resume) any service which does not harm your routines, like “Indexing Service.” You can do that any number of times for any number of services.
    • Open your SQL Server Enterprise manager. If you open your “ServiceHistory” table, you should be able to see all the names of the services along with their status history.
    • To record date and time along with service history, add a new column to you table with TIMESTAMP as data type.

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · 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

    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - 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





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