PowerShell / PowerShell/PSResourceGet
Microsoft.PowerShell.PSResourceGet version 1.3 is not discovered as DSC resource and module not found
Open
@adityapatwardhan is already working on this.
Since Jun 16, 2026.
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
When I try to run and install DSC from PowerShell Gallery resources using new module I got error
Example of my configuration, on Windows server 2025 after instalation module in not discovered
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Install ComputerManagementDsc
type: Microsoft.PowerShell.PSResourceGet/PSResourceList
properties:
repositoryName: PSGallery
trustedRepository: true
resources:
- name: ComputerManagementDsc
version: 10.0.0
_exist: true
DSC v3 show me resources as file are copied
Microsoft.Adapter/PowerShell Adapter 0.1.0 gs--t--e- Resource adapter to classic DSC Powershell resources.
Microsoft.Adapter/WindowsPowerShell Adapter 0.1.0 gs--t--e- Resource adapter to classic DSC Powershell resources in Windows PowerShell.
Microsoft.DSC.Debug/Echo Resource 1.0.0 gs--t--e- Echo resource for testing and debugging purposes
Microsoft.DSC.Transitional/PowerShellScript Resource 0.1.0 gs--t---- Enable running PowerShell 7 scripts inline
Microsoft.DSC.Transitional/RunCommandOnSet Resource 0.1.0 gs------- Takes a single-command line to execute on DSC set operation
Microsoft.DSC.Transitional/WindowsPowerShellScript Resource 0.1.0 gs--t---- Enable running Windows PowerShell 5.1 scripts inline
Microsoft.DSC/Assertion Group 0.1.0 gs--t---- `test` will be invoked for all resources in the supplied configuration.
Microsoft.DSC/Group Group 0.1.0 gs--t---- All resources in the supplied configuration is treated as a group.
Microsoft.DSC/Include Importer 0.1.0 gs--t---- Allows including a configuration file with optional parameter file.
Microsoft.DSC/PowerShell Adapter 0.1.0 gs--t--e- Resource adapter to classic DSC Powershell resources.
Microsoft.OpenSSH.SSHD/sshd_config Resource 0.1.0 gs-----e- Manage SSH Server Configuration
Microsoft.OpenSSH.SSHD/Subsystem Resource 0.1.0 gs-x----- Manage SSH Server Subsystem keyword (single entry)
Microsoft.OpenSSH.SSHD/SubsystemList Resource 0.1.0 gs------- Manage SSH Server Subsystem keyword (accepts multiple entries)
Microsoft.OpenSSH.SSHD/Windows Resource 0.1.0 gs------- Manage SSH Server Configuration Global Settings
Microsoft.PowerShell.PSResourceGet/PSResourceList Resource 0.0.1 gs--t--e- Manage PowerShell resources using PSResourceGet.
Microsoft.PowerShell.PSResourceGet/Repository Resource 0.0.1 gs---d-e- Manage PowerShell repositories using PSResourceGet.
Microsoft.PowerShell/Profile Resource 0.1.0 gs-----e- Manage PowerShell profiles.
Microsoft.Windows/FeatureOnDemandList Resource 0.1.0 gs-----e- Manage Windows Features on Demand (capabilities) using the DISM API.
Microsoft.Windows/FirewallRuleList Resource 0.1.0 gs-----e- Manage Windows Firewall rules using the netfw.h APIs.
Microsoft.Windows/OptionalFeatureList Resource 0.1.0 gs-----e- Manage Windows Optional Features using the DISM API.
Microsoft.Windows/RebootPending Resource 0.1.0 g-------- Returns info about pending reboot.
Microsoft.Windows/Registry Resource 1.0.0 gsw--d--- Manage Windows Registry keys and values
Microsoft.Windows/RegistryList Resource 1.0.0 gswx----- Manage multiple Windows Registry keys and values
Microsoft.Windows/Service Resource 0.1.0 gs-----e- Manage Windows services
Microsoft.Windows/UpdateList Resource 0.1.0 gs-----e- Query Windows Update information for specific updates.
Microsoft.Windows/WindowsPowerShell Adapter 0.1.0 gs--t--e- Resource adapter to classic DSC Powershell resources in Windows PowerShell.
Microsoft.Windows/WMI Adapter 1.0.0 gs------- Resource adapter to WMI resources.
Microsoft.WinGet/AdminSettings Resource 1.28.240 gs--t--e- Allows management of administrator settings via the DSC v3 command line interface prot…
Microsoft.WinGet/Package Resource 1.28.240 gs-xt--e- Allows management of package state via the DSC v3 command line interface protocol. See
Microsoft.WinGet/Source Resource 1.28.240 gs-xt--e- Allows management of source configuration via the DSC v3 command line interface protoc…
Microsoft.WinGet/UserSettingsFile Resource 1.28.240 gs-xt--e- Allows management of user settings file via the DSC v3 command line interface protocol…
Microsoft/OSInfo Resource 0.1.0 g------e- Returns information about the operating system.
Expected behavior
Install DSC resources using DSCv3
Actual behavior
Install DSC resoure from PowerShell gallery
Error details
2026-05-30T18:16:45.553920Z DEBUG dsc_lib::dscresources::dscresource: 402: Invoking get for 'Microsoft.PowerShell.PSResourceGet/PSResourceList'
2026-05-30T18:16:45.554407Z DEBUG dsc_lib::dscresources::command_resource: 45: Invoking get for 'Microsoft.PowerShell.PSResourceGet/PSResourceList'
2026-05-30T18:16:45.557266Z DEBUG dsc_lib::dscresources::command_resource: 1067: Parsing input as stdin
2026-05-30T18:16:45.557716Z INFO dsc_lib::dscresources::command_resource: 69: Invoking get 'Microsoft.PowerShell.PSResourceGet/PSResourceList' using 'pwsh'
2026-05-30T18:16:46.154220Z DEBUG dsc_lib::dscresources::command_resource: 1218: PID 8836: Exiting with error code 1 due to unhandled exception: The specified module 'C:\dsc\dsc-3\Microsoft.PowerShell.PSResourceGet.psd1' was not loaded because no valid module file was found in any module directory.
2026-05-30T18:16:46.222143Z DEBUG dsc_lib::dscresources::command_resource: 850: Process 'pwsh' id 8836 exited with code 1
2026-05-30T18:16:46.222685Z ERROR dsc_lib::dscresources::command_resource: 908: Failed to run process 'pwsh': Command: Resource 'pwsh' [exit code 1] manifest description: Error
2026-05-30T18:16:46.223718Z ERROR dsc::subcommand: 76: Command: Resource 'pwsh' [exit code 1] manifest description: Error
Environment data
Get-Module Microsoft.PowerShell.PSResourceGet; $PSVersionTable
Name Value
---- -----
PSVersion 7.6.1
PSEdition Core
GitCommitId 7.6.1
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.