You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the only way to customize what properties are displayed by default with DefaultDisplayPropertySet is to use a function or script as the output handler. It would be nice to be able to provide only a list of property names within the JSON config and have those displayed by default without any other additional configuration.
This would allow better alignment with an executable's native behavior that returns fewer properties when not requesting the full JSON response.
A new array property would be added to OutputHandlers that accepted a list of properties that would be returned by the executable. That list would be used to set the default returned properties as part of System.Management.Automation.PSPropertySet
The text was updated successfully, but these errors were encountered:
Summary of the new feature / enhancement
I think the only way to customize what properties are displayed by default with
DefaultDisplayPropertySet
is to use a function or script as the output handler. It would be nice to be able to provide only a list of property names within the JSON config and have those displayed by default without any other additional configuration.This would allow better alignment with an executable's native behavior that returns fewer properties when not requesting the full JSON response.
Proposed technical implementation details (optional)
A new array property would be added to
OutputHandlers
that accepted a list of properties that would be returned by the executable. That list would be used to set the default returned properties as part ofSystem.Management.Automation.PSPropertySet
The text was updated successfully, but these errors were encountered: