Click here to Skip to main content
15,892,298 members

Help with WMI in windows services

Dave Moss75 asked:

Open original thread
As a fairly new .net developer I am looking for some help with WMI in VB.net on the .net 4.0 framework.

I will start with an overview of what I am trying to achieve. I have several windows services that I have written and I want to expose the work these services are doing to a management application for the operators to see what work is currently being done or whether the service is currently idle.

After some googling I came across the concept of WMI which seemed to cater for what I was trying to achieve perfectly.

I think I have got my head round coding the things I want to expose from the windows service. What I am having trouble with is how I can fire an event of some sort that the management application can see to let it know that something has changed and update its UI with the information.

After a lot more googling I am getting a bit stuck and hence the question.

I would be happy to know if there are better alternatives to WMI that I should be using.

I hope this is enough information to enable someone to point me in the right direction.

Thanks in advance,

Dave
Tags: Visual Basic, WMI

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900