Skip to content

Appx extension fails when DSC_RESOURCE_PATH is set #1632

Description

@ThomasNieto

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

By setting $env:DSC_RESOURCE_PATH to a value it seems as though DSC no longer looks in the PATH envvar to for the extensions to find their required executables.

Steps to reproduce

$env:DSC_RESOURCE_PATH = "C:\dsc"
dsc resource list
2026-07-16T07:06:57.049078Z  WARN Extension 'Microsoft.Windows.Appx/Discover' failed to discover resources: Command: Operation Executable 'powershell' not found with working directory 'C:\dsc' for executable 'powershell.exe'

Expected behavior

Appx is able to find powershell

Actual behavior

Appx can't find powershell

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.3
PSEdition                      Core
GitCommitId                    7.6.3
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

dsc 3.3.0-preview.2

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions