PowerShell Module to import Chocolatey packages to various Configuration Management Systems
The Module has been re-added to the PowerShell Gallery with an updated name due to account problems :( Please look out for ChocoDeploy2
- PowerShell 5.0+ (No PS 6 Support as of now)
- Chocolatey installed (see https://chocolatey.org/install)
- Configuration Manager Console installed (for ConfigMgr Application Creation)
- Microsoft Win32 Content Prep Tool (see https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool)
- Internet connectivity
- Download and install module from PowerShell Gallery.
- Import Module
- Create Chocolatey Client App
New-ChocoClientApp -CMSiteCode DEC: -CMSiteServerFQDN cm001.declinelab.com -CMApplicationPath \\cm001\apps
- Create JSON File
PS> Get-ChocoInfo -PackageName GoogleChrome -OutputPath "$Env:temp\"
- Create Application
PS> New-ChocoApp -JsonFile $env:Temp\GoogleChrome.json -CMSiteCode CM1: -CMSiteServerFQDN sccm.contoso.com
- Check newly created App in Console and deploy it.
- Download and install module from PowerShell Gallery.
- Import Module
- Create JSON File
PS> Get-ChocoInfo -PackageName Winrar -OutputPath C:\Code\Workbench\
- Create Win32 Chocolatey App for Intune
New-ChocoClientApp -IntuneWinAppExePath C:\Code\Workbench\Microsoft-Win32-Content-Prep-Tool-1.6\IntuneWinAppUtil.exe -Win32AppPath C:\Code\Workbench\ -TenantName declinelab.com
- Create Win32 App Package for Intune
PS>New-ChocoApp -JsonFile C:\Code\Workbench\Winrar.json -IntuneWinAppExePath C:\Code\Workbench\Microsoft-Win32-Content-Prep-Tool-1.6\IntuneWinAppUtil.exe -TenantName declinelab.com -Verbose -Win32AppPath C:\Code\Workbench\
- Deploy the app from the Intune Portal
- Query choco catalog for package name (Get-ChocoInfo) using Chocolatey API
- Create custom Object with all relevant metadata (Name, Description, Author, Version, ImageUrl, Tags)
- ConfigMgr App Creation
- Intune App Creation
- SVG to JPEG Conversion
- Provide mechanism to update Chocolatey Packages
- Pester Tests and documentation