You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the NewFile example on the docs to test this. If the module manifest has CmdletsToExport key defined then Get-DscResource will not return any resources for that module.
Expected behavior
# Resources returned
Actual behavior
# No resources are returned
Error details
No response
Environment data
Name Value
---------
PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
3.0.0-beta1
Visuals
No response
The text was updated successfully, but these errors were encountered:
ThomasNieto
changed the title
CmdletsToExports causes Get-DscResources to not return resources
CmdletsToExports causes Get-DscResource to not return resources
Mar 8, 2023
To concur with @ThomasNieto, here are some tests I've made:
I know it's a known issue because I remember the workaround was mentioned to the config team a year or two ago...
I can't find trace of an issue though (thanks @ThomasNieto).
Prerequisites
Steps to reproduce
I am using the NewFile example on the docs to test this. If the module manifest has
CmdletsToExport
key defined thenGet-DscResource
will not return any resources for that module.Expected behavior
# Resources returned
Actual behavior
# No resources are returned
Error details
No response
Environment data
Version
3.0.0-beta1
Visuals
No response
The text was updated successfully, but these errors were encountered: