cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extension 2.0 WMI limited by defined definitions

henk_stobbe
DynaMight Pro
DynaMight Pro

Hello,

 

I am trying to create a 2.0 WMI extension and I notice that the FROM part in the used query has limitations.

 

When using a statement like:

query: SELECT Aaa, Bbb, Ccc FROM Win32_xxxxxx the plugin is refused:

henk_stobbe_0-1635195950180.png

 

Get-WmiObject -query "Select Aaa, Bbb. Ccc FROM Win32_xxxxx" works perfect! 

 

Is there a way to extend the root\comv2 definitions? Or am I limited by what is defined there?

 

Or in other words how to add Win32_xxxxxx definitions in a 2.0 extension?

 

KR Henk

 

 

2 REPLIES 2

ChadTurner
DynaMight Guru
DynaMight Guru

@henk_stobbe any luck with this? 

-Chad

Hello Chad,

 

Yes this is resolved, there is no limitation. I just made a typo )-;

 

Most extension-related classes and properties reside in the root\civm2 namespace. To learn more about WMI namespaces and classes, see Windows Management Instrumentation in the Microsoft documentation.

 

Works like a charm,

 

KR Henk