-
Notifications
You must be signed in to change notification settings - Fork 1.6k
DSCv3 admin settings resource #5458
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
Conversation
|
||
namespace AppInstaller::CLI | ||
{ | ||
// A resource for managing source configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// A resource for managing source configuration. | |
// A resource for managing admin settings. | |
throw CommandException(Resource::String::InvalidArgumentSpecifierError(ArgumentCommon::ForType(Execution::Args::Type::SettingName).Name)); | ||
} | ||
|
||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (ContainsAll && ContansSettingsName)
{
throw ArgumentConflict()?
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except that it also needs to return if not throwing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add to Predefined Export list with elevation true?
<value>Manage administrator settings</value> | ||
</data> | ||
<data name="DscAdminSettingsResourceLongDescription" xml:space="preserve"> | ||
<value>Allows management of administrator settings the DSC v3 command line interface protocol. See the help link for details.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<value>Allows management of administrator settings the DSC v3 command line interface protocol. See the help link for details.</value> | |
<value>Allows management of administrator settings through the DSC v3 command line interface protocol. See the help link for details.</value> | |
Change
Adds an admin settings resource to mirror the existing v2.
Also adds
winget settings reset --all
to reset all admin settings to their default values (respecting group policy of course).Validation
Added E2E tests for invoking the resource.
Microsoft Reviewers: Open in CodeFlow