Skip to content

Move to direct dsc launch instead of alias - #6691

Merged
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:dsc-direct
Nov 19, 2026
Merged

JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:dsc-direct

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

📖 Description

Move to using the path to dsc.exe directly instead of the alias for automatically detected DSCv3 use.

🔍 Validation

New and existing regression tests.

Microsoft Reviewers: Open in CodeFlow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@JohnMcPMS
JohnMcPMS merged commit 0977be0 into microsoft:master Nov 19, 2026
9 checks passed
@JohnMcPMS
JohnMcPMS deleted the dsc-direct branch November 19, 2026 00:31
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.

3 participants