Skip to content

Conversation

Gijsreyn
Copy link
Contributor

@Gijsreyn Gijsreyn commented Sep 5, 2025

PR Summary

This pull request adds a known issue when running dsc resource list --adapter Microsoft.Windows/WindowsPowerShell with the $env:PSModulePath containing a ";" at the end. It also fixes up an example, which was reported on the dsc channel (Discord).

PR Context

@Gijsreyn
Copy link
Contributor Author

Gijsreyn commented Sep 5, 2025

PSDesiredStateConfiguration v2.0.7 doesn't have this issue.

Copy link
Collaborator

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

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

Aside from a small formatting change, this documentation looks good. I'm going to file a separate issue for updating the adapter to return a specific exit code for this failure state, but that's nonblocking for this PR.


When running `dsc resource list --adapter Microsoft.Windows/WindowsPowerShell`, you
may see zero resources returned. In trace or debug logs, an error like the following can
appear: "Cannot bind argument to parameter 'Path' because it is an empty string."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
appear: "Cannot bind argument to parameter 'Path' because it is an empty string."
appear:
```console
Cannot bind argument to parameter 'Path' because it is an empty string.
```

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.

2 participants