examples/Resources/ChocolateyPin/2-ChocolateyPin_PinPackagewithVersion.ps1

configuration Chocolatey 
{
    Import-DscResource -ModuleName Chocolatey

    Node localhost {
        ChocolateyPin AddPintoPackage {
            Ensure  = 'Present'
            Name    = 'Putty'
            Version = '0.71'
        }
    }
}