WMI & .NET Framework

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry West

    WMI & .NET Framework

    I just want to make certain I'm clear on something...

    I plan on using WMI in my VB.NET 2008 project. To do so I include the
    following statement:

    imports System.Manageme nt

    Now, what I want to be clear on is this --if a user has the .NET Framework
    installed then my program will be able to use WMI. I don't also need to
    insure that they have the WMI scripting library (wbemdisp.tlb) installed
    like in VB6?

    Thanks!

    JW


  • kimiraikkonen

    #2
    Re: WMI & .NET Framework

    On Mar 15, 9:22 pm, "Jerry West" <j...@comcast.n etwrote:
    I just want to make certain I'm clear on something...
    >
    I plan on using WMI in my VB.NET 2008 project. To do so I include the
    following statement:
    >
    imports System.Manageme nt
    >
    Now, what I want to be clear on is this --if a user has the .NET Framework
    installed then my program will be able to use WMI. I don't also need to
    insure that they have the WMI scripting library (wbemdisp.tlb) installed
    like in VB6?
    >
    Thanks!
    >
    JW
    Also it seems System.Manageme nt namespace is not present (undefined)
    in .NET 2.0 with VB 2005 express. Why?

    But there's in MSDN? :
    Provides access to a rich set of management information and management events about the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure. Applications and services can query for interesting management information (such as how much free space is left on the disk, what is the current CPU utilization, which database a certain application is connected to, and much more), using classes derived from ManagementObjectSearcher and ManagementQuery, or subscribe to a variety of management events using the ManagementEventWatcher class. The accessible data can be from both managed and unmanaged components in the distributed environment.

    Comment

    Working...