Skip to content

Conversation

@AmelBawa-msft
Copy link
Contributor

@AmelBawa-msft AmelBawa-msft commented Jul 9, 2025

Invoke get using dsc.exe

PS C:\> dsc resource get -r "Microsoft.WinGetCreate/Settings"
{"actualState":{"settings":{"$schema":"https://aka.ms/wingetcreate-settings.schema.0.1.json","Telemetry":{"disable":false},"CleanUp":{"intervalInDays":7,"disable":false},"WindowsPackageManagerRepository":{"owner":"microsoft","name":"winget-pkgs"},"Manifest":{"format":"yaml"},"Visual":{"anonymizePaths":true}}}}

First run experience

PS C:\> wingetcreate dsc -g settings
Telemetry Settings
------------------
The Windows Package Manager Manifest Creator collects usage data in order to improve your experience.
The data is anonymous and collected only by Microsoft.
By default, telemetry is enabled but can be disabled by running `wingetcreate settings` and editing your settings file.

{"settings":{"$schema":"https://aka.ms/wingetcreate-settings.schema.0.1.json","Telemetry":{"disable":false},"CleanUp":{"intervalInDays":7,"disable":false},"WindowsPackageManagerRepository":{"owner":"microsoft","name":"winget-pkgs"},"Manifest":{"format":"yaml"},"Visual":{"anonymizePaths":true}}}

MSIX content

DSC resource is placed in the root of the MSIX package
image


Microsoft Reviewers: Open in CodeFlow

@AmelBawa-msft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@AmelBawa-msft AmelBawa-msft enabled auto-merge (squash) July 10, 2025 16:38
@AmelBawa-msft AmelBawa-msft merged commit c92436b into main Jul 10, 2025
1 check passed
@AmelBawa-msft AmelBawa-msft deleted the user/amelbawa/dsc-resource-file branch July 10, 2025 20:23
@AmelBawa-msft AmelBawa-msft linked an issue Jul 10, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement support for settings via DSC

3 participants