PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
60 stars 14 forks source link

Get-DscResource - Module name is case sensitive - on Linux/macOS #12

Open TravisEz13 opened 5 years ago

TravisEz13 commented 5 years ago

On PowerShell Core on:

get-dscresource -Name script -Module psdscresources

Expected

ResourceType  : MSFT_ScriptResource                                                                                                                                                                                       
Name          : Script                                                                                                                                                                                                    
FriendlyName  : Script                                                                                                                                                                                                   
 Module        : PSDscResources                                                                                                                                                                                           
 ModuleName    : PSDscResources                                                                                                                                                                                            
Version       : 2.12.0.0                                                                                                                                                                                                  
Path          : /root/.local/share/powershell/Modules/PSDscResources/2.12.0.0/DscResources/MSFT_ScriptResource/MSFT_ScriptResource.psm1                                                                                   
ParentPath    : /root/.local/share/powershell/Modules/PSDscResources/2.12.0.0/DscResources/MSFT_ScriptResource                                                                                                            
ImplementedAs : PowerShell                                                                                                                                                                                                
CompanyName   : Microsoft Corporation                                                                                                                                                                                     
Properties    : {GetScript, SetScript, TestScript, Credential…}

Actual

WARNING: There are no modules present in the system with the given module specification.

Workaround

get-dscresource -Name script -Module PSDscResources