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
Spawning a WMI Class Instance using C#
imin83
http://www.eggheadcafe.com/articles/20030511.asp
Scott Swanson MSN
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