winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Add settings values to `winget --info`

Open denelon opened this issue 2 years ago • 3 comments

Description of the new feature / enhancement

The behavior of WinGet can be modified by Group Policy, Administrative Settings, and User Settings (settings.json). Sometimes troubleshooting issues is tricky without knowing which settings have been applied.

WinGet info displays "Group Policy" so the user can be aware of those settings configured by an administrator.

It would also be helpful to see "Administrator Settings" and "User Settings" all in one place.

Note: as experimental settings change from version to version, they may no longer apply to the client. Ideally, the display via winget --info would only render settings the client understands how to honor.

Proposed technical implementation details

No response

denelon avatar Jan 31 '23 22:01 denelon

This was inspired by:

  • https://github.com/microsoft/winget-cli/issues/2879

I realized there is no "easy" way to see administrative settings, and if we're going to expose those, we might as well include the user settings.

denelon avatar Jan 31 '23 22:01 denelon

If someone from the community is interested, and the "Ideally" statement in the issue above is too complicated, that can be split into a separate issue. 😊

denelon avatar Jan 31 '23 22:01 denelon

Note: winget settings export will dump administrative settings out as JSON.

denelon avatar Feb 01 '23 00:02 denelon