Project

PSTeams

PSTeams is a PowerShell Module working on Windows / Linux and Mac. It allows sending notifications to Microsoft Teams via WebHook Notifications. It's pretty flexible and provides a bunch of options. Initially, it only supported one sort of Team Cards but since version 2.X.X it supports Adaptive Cards, Hero Cards, List Cards, and Thumbnail Cards. All those new cards have their own cmdlets and the old version of creating Teams Cards stays as-is for compatibility reasons.

Stars439
Forks40
Open issues9
PowerShell Gallery downloads1138520
Releasev2.4.0
Language: PowerShell Updated: 2026-04-11T10:19:07.0000000+00:00

Curated Examples

Send a simple Teams message

Use PSTeams to send a straightforward Microsoft Teams webhook message.

This pattern is useful when a script only needs to notify a channel that something happened.

It comes from the source example at Examples/Example-Short.ps1.

When to use this pattern

  • You need a low-friction channel notification.
  • A full card is unnecessary.
  • The webhook URI is already managed as a secret.

Example

Import-Module .\PSTeams.psd1 -Force

$teamsWebhook = $env:TEAMS_WEBHOOK_URL
Send-TeamsMessage -URI $teamsWebhook -MessageText 'Deployment finished successfully.'

What this demonstrates

  • sending a basic webhook message
  • keeping the webhook outside the script
  • using Teams as an operations notification target

Source