Slack and PowerShell

Having a platform that enables ChatOps can be a game changer.  You can quickly see changes, alerts, build status, discussions, emergency chats, and more, all in a single, searchable interface.  If you can sift through the gifs.

Bots are a hot topic these days, and and it's well worth checking out Matt Hodgkins bit on integrating PowerShell with Hubot.  Bots are a great alternative to trying to spin up a web front end for PowerShell.

On top of bots, systems like Slack often offer a wealth of integrations, allowing you to hook into systems like Nagios, PagerDuty, GitHub, Trello, and many others.

Occasionally, you might have something that doesn't integrate natively.  Maybe you want to integrate Slack messages into your SCOM command notification channel, your CI/CD build process, orchestration system, configuration management systems, or even ad hoc scripts.

If you're using Slack, check out the Slack API methods, or an incoming webhook.  With the API in particular, you can do some handy stuff!

If you like the idea of re-usable tools and abstraction, check out PSSlack, a PowerShell module that we're starting to build out, which can simplify sending messages, searching messages, and more.

pslack

About the Author

Warren Frame

Profile photo of Warren Frame

Systems Engineer with a penchant for PowerShell, science, cooking, information security, family, cookies, and the Oxford comma.