Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,32 @@ vsconfig
website
websites
wekyb
Hmmss
MMdd
azdoserver
Codecov
eature
HQRM
hqrmtest
modulefast
MOF
nupkg
powershellgallery
quickconfig
QWord
registrering
schange
setvariable
sourcing
splatting
updatebuildnumber
vso
winrm
MMdd
NOLOGO
whatif
wildcards
Windo
winget
workflows
worktree
yml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,6 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# Output folder from Sampler module
**/output/
44 changes: 44 additions & 0 deletions .vscode/analyzersettings.psd1
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-*'
)

}
21 changes: 9 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@
"files.encoding": "utf8bom",
"files.autoGuessEncoding": true
},
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": true,
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.avoidSemicolonsAsLineTerminators": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.openBraceOnSameLine": false,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceInsideBrace": true
"powershell.codeFormatting.ignoreOneLineBlock": false,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
"powershell.codeFormatting.preset": "Custom",
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1",
}
15 changes: 15 additions & 0 deletions resources/Microsoft.Windows.Settings/.gitattributes
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
12 changes: 12 additions & 0 deletions resources/Microsoft.Windows.Settings/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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

- Initial release of module with the following settings:
- General
- FindMyDevice
40 changes: 40 additions & 0 deletions resources/Microsoft.Windows.Settings/GitVersion.yml
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']

16 changes: 16 additions & 0 deletions resources/Microsoft.Windows.Settings/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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.

For more detailed examples and parameter descriptions, refer to the individual resource documentation.
30 changes: 30 additions & 0 deletions resources/Microsoft.Windows.Settings/RequiredModules.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@{
<#
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 = '5.12.2'
PSScriptAnalyzer = '1.24.0'
Pester = '5.7.1'
ModuleBuilder = '3.1.7'
ChangelogManagement = '3.1.0'
Sampler = '0.118.2'
'Sampler.GitHubTasks' = '0.3.4'
'DscResource.Base' = '1.3.0'
'DscResource.Common' = '0.21.0'
'DscResource.Test' = '0.17.2'
'DscResource.AnalyzerRules' = '0.2.0'
xDscResourceDesigner = '1.13.0.0'
'DscResource.DocGenerator' = '0.13.0'
PSDesiredStateConfiguration = '2.0.7'
}

Loading
Loading