examples/Resources/ChocolateyPackage/1-ChocolateyPackage_InstallPackage.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
configuration Chocolatey 
{
    Import-DscResource -ModuleName Chocolatey

    Node localhost {
        ChocolateyPackage Putty {
            Ensure            = 'Present'
            Name              = 'Putty'
            Version           = 'Latest'
            ChocolateyOptions = @{ source = 'https://chocolatey.org/api/v2/' }
        }
    }
}