๐ง THIS PROJECT IS IN DEVELOPMENT. While this is minimally functional, expect changes to occur rapidly.
Do you use Slack? Teams? Discord? Do you partake in ChatOps? If you've answered yes, or you'd like to do those things, this is another tool in your toolbelt!
This plug-in allows you to execute choco commands on target systems directly from your enterprise messaging platform!
- Install Chocolatey Packages
- Uninstall Chocolatey Packages
- Upgrade Chocolatey Packages
- List available Chocolatey Packages for installation
- Configure Chocolatey Sources
Steps:
- Clone this repository
- cd into newly cloned repository directory
- Run ./build.ps1 -Build
- Run ./build.ps1 -Deploy
- Copy ChocoBot folder to $PSModulePath
Install-Module PoshBot
Install-Module ChocoBot
- Follow QuickStart Guide available here.
- Run
!install-plugin ChocoBot
from within your Messaging platform once you have PoshBot added
From within your messaging platform, once you have the Bot running and the plug-in installed use one of the following:
!install -Package $packagename -Source $Source -Computername $computername
or, with fully qualified commands
!Install-ChocoBotPackage -Package $package -Source $source -Computername $computername`
From within your messaging platform, once you have the Bot running and the plug-in installed use one of the following:
!uninstall -Package $packagename -Computername $computername
or, with fully qualified commands
!Uninstall-ChocoBotPackage -Package $package -Computername $computername`
From within your messaging platform, once you have the Bot running and the plug-in installed use one of the following:
#upgrade all packages
!upgrade -Computername $computername
or,
#upgrade specific package
!upgrade -Package $package -Computername $computername
or, with fully-qualified commands
#upgrade all packages with Fully-Qualified command name
!Upgrade-ChocoBotPackage -Computername $computername`
#Retrieve available packages from source on target computer
!listpackages -Source $source -Computername $computername
#List installed Chocolatey packages
!listpackages -LocalOnly -Computername $computername
#Fully-Qualified Command
!Get-ChocoBotPackage -Source $source -Computername $computername
Help is available via a chat message! For example, for help with installing packages, execute the following:
!help choco:install
Online help is also available in the docs here.