-
Notifications
You must be signed in to change notification settings - Fork 46
New module Microsoft.Windows.Settings #158
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
Open
Gijsreyn
wants to merge
25
commits into
microsoft:main
Choose a base branch
from
Gijsreyn:construct-module-setup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5987abc
Init Microsoft.Windows.Settings
d55478e
Fix test for FindMyDevice
c2d9ea8
Update wiki
d206fb9
Update markdownlinter
168126b
Update spelling
aad751f
Merge branch 'main' of https://github.com/Gijsreyn/winget-dsc into co…
a9736ea
Merge branch 'microsoft:main' into construct-module-setup
Gijsreyn 61a6855
Add synopsis and description
ee7c50b
Merge branch 'construct-module-setup' of https://github.com/Gijsreyn/…
23b6a9a
Forbidden pattern
c7d7d0e
Forbidden pattern
0a81137
Merge branch 'main' of https://github.com/Gijsreyn/winget-dsc into co…
Gijsreyn 8f48a61
Fix test and counter
Gijsreyn 2d3d75a
Rewrite Get-RegistryStatus
Gijsreyn f53e764
Adding first integration test
Gijsreyn d26e11d
Solve todo task
Gijsreyn 8ed46dd
Solve spelling
Gijsreyn a9c406c
Integration test for General
Gijsreyn dd1d1af
Revert base class
Gijsreyn fc2bc6a
Solve remark
Gijsreyn 207c345
Remove example
Gijsreyn b8e617d
Remove parameter from General example
Gijsreyn 8f54948
Update example
Gijsreyn 2075bb8
Add keywords and update example
Gijsreyn 66d1d13
Pin versions
Gijsreyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| @{ | ||
| CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules' | ||
| includeDefaultRules = $true | ||
| IncludeRules = @( | ||
| # DSC Resource Kit style guideline rules. | ||
| 'PSAvoidDefaultValueForMandatoryParameter', | ||
| 'PSAvoidDefaultValueSwitchParameter', | ||
| 'PSAvoidInvokingEmptyMembers', | ||
| 'PSAvoidNullOrEmptyHelpMessageAttribute', | ||
| 'PSAvoidUsingCmdletAliases', | ||
| 'PSAvoidUsingComputerNameHardcoded', | ||
| 'PSAvoidUsingDeprecatedManifestFields', | ||
| 'PSAvoidUsingEmptyCatchBlock', | ||
| 'PSAvoidUsingInvokeExpression', | ||
| 'PSAvoidUsingPositionalParameters', | ||
| 'PSAvoidShouldContinueWithoutForce', | ||
| 'PSAvoidUsingWMICmdlet', | ||
| 'PSAvoidUsingWriteHost', | ||
| 'PSDSCReturnCorrectTypesForDSCFunctions', | ||
| 'PSDSCStandardDSCFunctionsInResource', | ||
| 'PSDSCUseIdenticalMandatoryParametersForDSC', | ||
| 'PSDSCUseIdenticalParametersForDSC', | ||
| 'PSMisleadingBacktick', | ||
| 'PSMissingModuleManifestField', | ||
| 'PSPossibleIncorrectComparisonWithNull', | ||
| 'PSProvideCommentHelp', | ||
| 'PSReservedCmdletChar', | ||
| 'PSReservedParams', | ||
| 'PSUseApprovedVerbs', | ||
| 'PSUseCmdletCorrectly', | ||
| 'PSUseOutputTypeCorrectly', | ||
| 'PSAvoidGlobalVars', | ||
| 'PSAvoidUsingConvertToSecureStringWithPlainText', | ||
| 'PSAvoidUsingPlainTextForPassword', | ||
| 'PSAvoidUsingUsernameAndPasswordParams', | ||
| 'PSDSCUseVerboseMessageInDSCResource', | ||
| 'PSShouldProcess', | ||
| 'PSUseDeclaredVarsMoreThanAssignments', | ||
| 'PSUsePSCredentialType', | ||
|
|
||
| 'Measure-*' | ||
| ) | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Needed for publishing of examples, build worker defaults to core.autocrlf=input. | ||
| * text eol=autocrlf | ||
|
|
||
| *.mof text eol=crlf | ||
| *.sh text eol=lf | ||
| *.svg eol=lf | ||
|
|
||
| # Ensure any exe files are treated as binary | ||
| *.exe binary | ||
| *.jpg binary | ||
| *.xl* binary | ||
| *.pfx binary | ||
| *.png binary | ||
| *.dll binary | ||
| *.so binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Changelog for Microsoft.Windows.Settings | ||
|
|
||
| The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Added | ||
|
|
||
| - For new features. | ||
|
|
||
| ### Changed | ||
|
|
||
| - For changes in existing functionality. | ||
|
|
||
| ### Deprecated | ||
|
|
||
| - For soon-to-be removed features. | ||
|
|
||
| ### Removed | ||
|
|
||
| - For now removed features. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - For any bug fix. | ||
|
|
||
| ### Security | ||
|
|
||
| - In case of vulnerabilities. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| mode: ContinuousDelivery | ||
| next-version: 0.0.1 | ||
| major-version-bump-message: '(breaking\schange|breaking|major)\b' | ||
| minor-version-bump-message: '(adds?|features?|minor)\b' | ||
| patch-version-bump-message: '\s?(fix|patch)' | ||
| no-bump-message: '\+semver:\s?(none|skip)' | ||
| assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}' | ||
| branches: | ||
| master: | ||
| tag: preview | ||
| regex: ^main$ | ||
| pull-request: | ||
| tag: PR | ||
| feature: | ||
| tag: useBranchName | ||
| increment: Minor | ||
| regex: f(eature(s)?)?[\/-] | ||
| source-branches: ['master'] | ||
| hotfix: | ||
| tag: fix | ||
| increment: Patch | ||
| regex: (hot)?fix(es)?[\/-] | ||
| source-branches: ['master'] | ||
|
|
||
| ignore: | ||
| sha: [] | ||
| merge-message-formats: {} | ||
|
|
||
|
|
||
| # feature: | ||
| # tag: useBranchName | ||
| # increment: Minor | ||
| # regex: f(eature(s)?)?[/-] | ||
| # source-branches: ['master'] | ||
| # hotfix: | ||
| # tag: fix | ||
| # increment: Patch | ||
| # regex: (hot)?fix(es)?[/-] | ||
| # source-branches: ['master'] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Microsoft.Windows.Settings | ||
|
|
||
| The DSC resource module `Microsoft.Windows.Settings` provides a set of Desired State Configuration (DSC) resources for managing Windows settings. These resources allow you to configure and manage settings such as app preferences, device experiences, and USB configurations through PowerShell DSC. | ||
|
|
||
| ## Wiki and module under construction :construction: | ||
|
|
||
| ## Resources :construction: | ||
|
|
||
| - **AdvancedAppSettings**: Manage advanced application settings including app source preferences and device sharing experiences. | ||
| - **USB**: Manage USB device settings including enabling/disabling devices, allowing wake, and selective suspend options. | ||
|
|
||
| ## Usage :construction: | ||
|
|
||
| To use these resources, import the module and invoke the desired DSC resource with the appropriate parameters. | ||
|
|
||
| ```powershell | ||
| Import-Module -Name Microsoft.Windows.Settings | ||
|
|
||
| Invoke-DscResource -ModuleName Microsoft.Windows.Settings -Name AdvancedAppSettings -Method Set -Property @{ | ||
|
Gijsreyn marked this conversation as resolved.
Outdated
|
||
| SID = 'S-1-5-21-1234567890-123456789-1234567890-1001'; | ||
| AppSourcePreference = 'PreferStore'; | ||
| ShareDeviceExperience = 'Everyone'; | ||
| ArchiveApp = $true; | ||
| } | ||
| ``` | ||
|
|
||
| For more detailed examples and parameter descriptions, refer to the individual resource documentation. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| @{ | ||
| <# | ||
| This is only required if you need to use the method PowerShellGet & PSDepend | ||
| It is not required for PSResourceGet or ModuleFast (and will be ignored). | ||
| See Resolve-Dependency.psd1 on how to enable methods. | ||
| #> | ||
| #PSDependOptions = @{ | ||
| # AddToPath = $true | ||
| # Target = 'output\RequiredModules' | ||
| # Parameters = @{ | ||
| # Repository = 'PSGallery' | ||
| # } | ||
| #} | ||
|
|
||
| InvokeBuild = 'latest' | ||
| PSScriptAnalyzer = 'latest' | ||
| Pester = 'latest' | ||
| ModuleBuilder = 'latest' | ||
| ChangelogManagement = 'latest' | ||
| Sampler = 'latest' | ||
| 'Sampler.GitHubTasks' = 'latest' | ||
| MarkdownLinkCheck = 'latest' | ||
| 'DscResource.Base' = 'latest' | ||
| 'DscResource.Common' = 'latest' | ||
| 'DscResource.Test' = 'latest' | ||
| 'DscResource.AnalyzerRules' = 'latest' | ||
| xDscResourceDesigner = 'latest' | ||
| 'DscResource.DocGenerator' = 'latest' | ||
| PSDesiredStateConfiguration = 'latest' | ||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.