This module servers to be a PowerShell wrapper to the underlying API that drives pretty much every aspect of Chocolatey Central Management
-
Clone this repository:
git clone https://gitlab.com/chocolatey/central-management/chocoCCM.git
-
Run build script
./src/build.ps1 -Build
-
Import the Module
ipmo ./src/Output/ChocoCCM/ChocoCCM.psd1
-
To see a list of available commands:
Get-Command -Module ChocoCCM
IMPORTANT: Run Connect-CCMServer prior to running any other command. This will setup and store a $Session variable
This cmdlet accepts a credential object. Rather create one and pass it in, or leave it off and be prompted to enter creds. Also, there is an -UseSSL parameter which will force HTTPS on all requests to the CCM API.