extenzo / cSNMP

PowerShell SNMP Resource for DSC
15 stars 6 forks source link

Module does not exist at the PowerShell module Path #4

Open markallisongit opened 7 years ago

markallisongit commented 7 years ago

I installed from the Gallery. When I run Test-DscConfiguration -Path .\ServerConfig I get this error:

The PowerShell DSC resource cSNMPCommunity from module <cSNMP,0.2> does not exist at the PowerShell module path nor is
it registered as a WMI DSC resource.
At line:1 char:1
+ Test-DscConfiguration -Path .\ServerConfig\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : DscResourceNotFound
    + PSComputerName        : LAUREL

Configuration looks like

    cSNMPCommunity Community {
        Community = "mycommunity"
        Right = "ReadOnly"
        Ensure = "Present"
        DependsOn = '[WindowsFeature]SNMPRSAT' 
    }  
fabiendibot commented 7 years ago

Hi @markallisongit ,

Which powershell version are you running and which OS ? I can't reproduce this error on my Win 2016 server.

Mystikal57 commented 5 years ago

Hi, Same problem for me with powershell 4, couldn't update to powershell 5 because of exchange 2013.