I am working with Visual studio 2008. What libraries should be used when using WMI. I have imported many libraries but they don’t work
ConnectionOptions options = new ConnectionOptions();
I am using these Namespaces:
using System.Management;
using System.Security;
You may want to add a reference to
System.Managementtoo.Please find more information here on this MSDN article :
Someone faced similar issues and solved it by adding a reference to the
dll.