要创建一个ManagementScope
对象,必须将字符串传递给构造函数,该构造函数可以是IP地址,也可以是PC的名称。ManagementScope和“root cimv2”?
我不明白的是最后的部分是什么:
ManagementScope ms = new ManagementScope(@"FullComputerName\root\cimv2");
^^^^^^^^^^
What is this?
什么root\cimv2
代表不?它从何而来?还有什么可以代替它呢?
第二个链接指出它是Windows XP和Windows 2000的默认命名空间。它仍然位于Windows 7计算机上,依据HKEY_LOCAL_MACHINE \ Software \ Microsoft \ WBEM \ Scripting \ Default命名空间。 – Darren 2013-06-03 03:38:03