PowerShell / DSC

This repo is for the DSC v3 project
MIT License
133 stars 22 forks source link

WMI Adapter updates #475

Open SteveL-MSFT opened 1 week ago

SteveL-MSFT commented 1 week ago

Summary of the new feature / enhancement

Support:

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.