kubasiatkowski / SCCMChoco

GNU Lesser General Public License v3.0
44 stars 14 forks source link

SCCMChoco

Description

PowerShell module integrating Chocolatey with SCCM. Provide URL of Chocolatey package, sit down, relax and wait for new applications to appear in Software Center. Applications are built using PowerShell wrappers to download all content from Internet. Nothing is stored on SCCM distribution points, all software is available immediately

Check screenshots to see code in action!!

Requirements

Computer running the module:

SCCM clients

https://github.com/kubasiatkowski/SCCMChoco/blob/master/PoweShellSettings.PNG

https://github.com/kubasiatkowski/SCCMChoco/blob/master/ClientSettings-big.jpg

https://docs.microsoft.com/en-us/sccm/core/clients/deploy/about-client-settings#computer-agent

How to use

  1. Download Module content from https://github.com/kubasiatkowski/SCCMChoco/tree/master/PowerShellModule
  2. Open PowerShell
  3. Import module:

import-module c:\*pathtodownloadedfiles*\PowerShellModule\SCCMChoco.psm1

  1. Check examples and enjoy :)

Examples

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox"

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox" -CMUserCollectionName "All Users"

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox" -CMDeviceCollectionName "All Users"

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox" -CMUserCollectionName "All Users" -IconsDir "\\SCCMSRV\CMSOURCE\Choco\Icons"

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/Firefox" -CMInstallDir "C:\Microsoft Configuration Manager\" - CMSiteCode "TST"

ToDo