Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Assuming you already have this hashtable
$MyHash = @{
Ensure = 'Present'
Name = 'Putty'
Version = 'Latest'
ChocolateyOptions = @{ source = 'https://chocolatey.org/api/v2/' }
}
Configuration MyDscConfig {
$Allnodes.nodename {
ChocolateyPackage Putty {
Ensure = $MyHash['Ensure']
Name = $MyHash['Name']
Version = $MyHash['Version']
ChocolateyOptions = $MyHash['ChocolateyOptions']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment