Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMI Adapter updates #475

Open
SteveL-MSFT opened this issue Jun 22, 2024 · 2 comments
Open

WMI Adapter updates #475

SteveL-MSFT opened this issue Jun 22, 2024 · 2 comments
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Milestone

Comments

@SteveL-MSFT
Copy link
Member

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 SteveL-MSFT added Issue-Enhancement The issue is a feature or idea Needs Triage labels Jun 22, 2024
@SteveL-MSFT SteveL-MSFT added this to the Post-3.0 milestone Jul 10, 2024
@SteveL-MSFT
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

No branches or pull requests

1 participant