Peter
2006-09-07 13:46:02 UTC
Good morning,
An MSDN article contains a simple WMI provider example. If I compile and
execute the code, the proper class is created within WMI, however, the
example fails to set the class properties. For example, `Number` should be
set to 888.
Any insight as to why this is happening would be greatly appreciated.
REFERENCE
How To: Provide Management Data
http://msdn2.microsoft.com/en-us/library/ms257343.aspx
SPECIFICS
* WMIDiag.vbs result: WMI repository state = CONSISTENT
* My user belongs to the `administrators` group
* My user has been granted full permissions to the wbem folder
* My user has been granted full permission via the `WMI Control` snap-in
* I can update the `InstanceClass` (from example) via wbemtest.exe
* Executing Instrumentation.Publish(instClass) (from example) creates an
instance in the WMI, but does not assign any values it's properties. The
properties values are always null.
An MSDN article contains a simple WMI provider example. If I compile and
execute the code, the proper class is created within WMI, however, the
example fails to set the class properties. For example, `Number` should be
set to 888.
Any insight as to why this is happening would be greatly appreciated.
REFERENCE
How To: Provide Management Data
http://msdn2.microsoft.com/en-us/library/ms257343.aspx
SPECIFICS
* WMIDiag.vbs result: WMI repository state = CONSISTENT
* My user belongs to the `administrators` group
* My user has been granted full permissions to the wbem folder
* My user has been granted full permission via the `WMI Control` snap-in
* I can update the `InstanceClass` (from example) via wbemtest.exe
* Executing Instrumentation.Publish(instClass) (from example) creates an
instance in the WMI, but does not assign any values it's properties. The
properties values are always null.