winget-cli
winget-cli copied to clipboard
Don't enable/disable admin settings if group policy prevents it
What was done?
- If an admin setting was disabled by a group policy, and user attempts to enable it using
winget settings --enable, then report an error message. - Similarly, if an admin setting was enabled by group policy, and user attempts to disable it using
winget settings --disable, then report an error message.
Test?
- Added tests covering the various state combinations.
Microsoft Reviewers: Open in CodeFlow
/azp run
Azure Pipelines successfully started running 1 pipeline(s).