Repository navigation
Move to direct dsc launch instead of alias - #6691
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Stopping ancestor pinning at Store package roots relies on unverified immutability assumptions requiring human security review and Windows runtime validation across standard/elevated launches and supported package-volume layouts.
No open issues 🎉
What changed in this PR
Updates WinGet configuration processing to launch automatically detected DSCv3 directly from its installed package rather than through an app execution alias.
Changes:
- Resolves the packaged executable path and attempts to repair unhealthy package registrations, with diagnostics.
- Stops ancestor pinning at trusted Store DSC package installation directories.
- Adds regression tests for package repair, path trust, and direct executable launch, plus a release note.
| File | Description |
|---|---|
| src/Microsoft.Management.Configuration.UnitTests/Tests/DSCv3PackageInformationTests.cs | Tests repair behavior, path trust, and installed-package launch. |
| src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/ProcessorSettings.cs | Forwards the diagnostics sink to package discovery. |
| src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/ProcessorPathBinding.cs | Limits ancestor pinning for trusted packaged executables. |
| src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/PackageInformation.cs | Resolves direct executable paths, repairs registrations, and identifies trusted package roots. |
| src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/FindDscPackageStateMachine.cs | Uses direct package paths during DSC discovery. |
| doc/release-notes/1.31/dsc-direct-package-path.md | Documents direct launch and registration repair. |
Review effort: Balanced
AmirMS (AmelBawa-msft)
approved these changes
Nov 18, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📖 Description
Move to using the path to
dsc.exedirectly instead of the alias for automatically detected DSCv3 use.🔍 Validation
New and existing regression tests.
Microsoft Reviewers: Open in CodeFlow