- April 24, 2016 at 6:27 pm #38197
I would like to have a DSC config that check to see if a package like xFirefox is installed and if not it installs it. Google keeps sending me in circles on this so I was hoping somebody here could point to an example configuration..April 24, 2016 at 6:46 pm #38198
The DSC resources in https://github.com/PowerShell/PackageManagementProviderResource might be what you're looking for. Or if you want a Chocolatey package, perhaps https://github.com/PowerShellOrg/cChoco .April 29, 2016 at 4:39 am #38380
Thanks Dave 🙂 I am trying the Choco route and found an article with a DSC config in it:
Trying this however I get squiggley lines under:
Import-DscResource -ModuleName cChcoco
I downloaded cChoco-master.zip from:
https://github.com/PowerShellOrg/cChoco – then I renamed it cChoco_126.96.36.199.zip,
moved it to:
...and finally created a new-dscchecksum for it. Not sure what I'm missing since the Powershell ISE obviously does not see it. Any suggestions?April 29, 2016 at 4:59 am #38382
The ISE needs the module to just be installed on your system (somewhere in $env:PSModulePath). The zip / checksum thing is for a pull server; clients that are configured to use that pull server to obtain resources will download and install modules from there, but that doesn't affect the machine where you're authoring the config.May 1, 2016 at 12:37 pm #38453
Ah ok thanks! Not keeping track of my modules lol!
You must be logged in to reply to this topic.