To create a ManagementScope
object you have to pass a string to the constructor which is either an IP address or the name of a PC.
What I don't get is what the last part is for:
ManagementScope ms = new ManagementScope(@"FullComputerName\root\cimv2");
^^^^^^^^^^
What is this?
What does root\cimv2
stand for? Where does it come from? and what else could there be instead of it?
root
is because it's the root of the tree. cimv2
is actually CIMv2
, because it's version 2 of the CIM (Common Information Model).
I think you're looking at this MSDN page. That input parameter is the full path, meaning the folders leading to the file.
That particular path is the default namespace for WMI classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With