Spawning a WMI Class Instance using C#  
Author Message
Romano Jerez





PostPosted: Visual C# General, Spawning a WMI Class Instance using C# Top

Is there a code sample on spawning a WMI instance using C# I have found samples using VBScripting and C++ but I need C# info.

Visual C#13  
 
 
swemaniac





PostPosted: Visual C# General, Spawning a WMI Class Instance using C# Top

Are you looking for the System.Management namespace ManagementClass, ManagementObject, etc.

http://www.eggheadcafe.com/articles/20030511.asp


 
 
ahmedilyas





PostPosted: Visual C# General, Spawning a WMI Class Instance using C# Top

right click on your project - go to add reference and select System.Management. Import the System.Management and System.Management.Instrumentation namespaces. I have also posted many examples on the forums to do some WMI stuff, perhaps this would be of some interest as a guide

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=913855&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=868096&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=839055&SiteID=1