DSC icon indicating copy to clipboard operation
DSC copied to clipboard

WMI Adapter updates

Open SteveL-MSFT opened this issue 1 year ago • 2 comments

Summary of the new feature / enhancement

Support:

  • set
  • export
  • delete
  • method invocation

Proposed technical implementation details (optional)

Many WMI classes support methods. We should maybe just have a WMIMethodInvocation metaclass that takes the namespace, class, method name, and a property bag (key/value pairs) that would be the inputs to the method. The only problem with this approach is that the user needs to know all that info.

Alternatively, but would be noisy when listing, is to have dynamic instances returned that represent each method that can be called.

SteveL-MSFT avatar Jun 22 '24 03:06 SteveL-MSFT

WMI Adapter should use a WMI query if there are properties specified:

type: root.cimv2/Win32_OperatingSyste
properties:
  caption:
  version:
  osarchitecture:
  oslanguage:

This should be turned in to select caption, version, osarchitecture, oslanguage from win32_operatingsystem

SteveL-MSFT avatar Sep 14 '24 20:09 SteveL-MSFT

When we have support for resources to return metadata, the WMI adapter should return the namespace and class used as metadata

SteveL-MSFT avatar Sep 14 '24 22:09 SteveL-MSFT