examples/Resources/ChocolateyPin/1-ChocolateyPin_PinPackage.ps1

configuration Chocolatey 
{
    Import-DscResource -ModuleName Chocolatey

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