Skip to content

PowerShell Module to import Chocolatey packages to various Configuration Management Systems

License

Notifications You must be signed in to change notification settings

techdecline/ChocoDeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChocoDeploy

PowerShell Module to import Chocolatey packages to various Configuration Management Systems

Important Note

The Module has been re-added to the PowerShell Gallery with an updated name due to account problems :( Please look out for ChocoDeploy2

How to use

Prerequisites

Step by Step (ConfigMgr)

  1. Download and install module from PowerShell Gallery.
  2. Import Module
  3. Create Chocolatey Client App New-ChocoClientApp -CMSiteCode DEC: -CMSiteServerFQDN cm001.declinelab.com -CMApplicationPath \\cm001\apps
  4. Create JSON File PS> Get-ChocoInfo -PackageName GoogleChrome -OutputPath "$Env:temp\"
  5. Create Application PS> New-ChocoApp -JsonFile $env:Temp\GoogleChrome.json -CMSiteCode CM1: -CMSiteServerFQDN sccm.contoso.com
  6. Check newly created App in Console and deploy it.

Step by Step (Intune)

  1. Download and install module from PowerShell Gallery.
  2. Import Module
  3. Create JSON File PS> Get-ChocoInfo -PackageName Winrar -OutputPath C:\Code\Workbench\
  4. 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
  5. 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\
  6. Deploy the app from the Intune Portal

Current State

  • 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

Open Work Items

  • Provide mechanism to update Chocolatey Packages
  • Pester Tests and documentation

About

PowerShell Module to import Chocolatey packages to various Configuration Management Systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published