Setting up Chocolatey for Business (C4B) with Quick Deployment Environment (QDE) using Desired State Configuration (DSC)
- Install NuGet and PowerShellGet, and trust the PowerShell Gallery:
Install-PackageProvider -Name NuGet -Force
Install-Module -Name PowerShellGet -Force
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
- Install
cChoco
DSC Resource:
Install-Module -Name cChoco -Force
- Expand maximum envelope size for WSMan (needed for large packages):
Set-WSManInstance -ValueSet @{MaxEnvelopeSizekb="512000"} -ResourceURI winrm/config
- Install the QDE server certificate
$downloader = New-Object -TypeName System.Net.WebClient
Invoke-Expression ($downloader.DownloadString('http://chocoserver:80/Import-ChocoServerCertificate.ps1'))
- Set Execution Policy to allow scripts:
Set-ExecutionPolicy RemoteSigned