cimv2 和 default:StdRegProv 之间的区别
Difference between cimv2 and default:StdRegProv
这两个有什么区别?
objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\" & line & "\root\default:StdRegProv")
objWMIService = GetObject("winmgmts:\" & line & "\root\cimv2")
cimv2
和default
是不同的WMI命名空间,其中包含不同的类。 StdRegProv
is a class inside the default
namespace giving you access to the Windows Registry. The cimv2
namespace provides classes like Win32_Process
, Win32_DiskDrive
or Win32_OperatingSystem
.
WMI 名字对象可以包含多个组件,其中大部分是可选的:
winmgmts:{security-settings}!//host/root/namespace:class.property=value
这两个有什么区别?
objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\" & line & "\root\default:StdRegProv")
objWMIService = GetObject("winmgmts:\" & line & "\root\cimv2")
cimv2
和default
是不同的WMI命名空间,其中包含不同的类。 StdRegProv
is a class inside the default
namespace giving you access to the Windows Registry. The cimv2
namespace provides classes like Win32_Process
, Win32_DiskDrive
or Win32_OperatingSystem
.
WMI 名字对象可以包含多个组件,其中大部分是可选的:
winmgmts:{security-settings}!//host/root/namespace:class.property=value