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

Compose an Adaptive Card

Use PSTeams to compose a basic Adaptive Card payload.

This pattern is useful when a notification needs structure instead of one line of text.

It comes from the source example at Examples/Adaptive Card/AdaptiveCard-Native01.ps1.

When to use this pattern

  • You need a structured message in Teams.
  • The payload should be authored in PowerShell.
  • Operators need facts or grouped information in one card.

Example

Import-Module .\PSTeams.psd1 -Force

New-AdaptiveCard {
    New-AdaptiveTextBlock -Size 'Medium' -Weight Bolder -Text 'Backup summary' -Wrap
    New-AdaptiveFactSet {
        New-AdaptiveFact -Title 'Server' -Value 'Server01'
        New-AdaptiveFact -Title 'Status' -Value 'Completed'
    }
} -Uri $env:TEAMS_WEBHOOK_URL

What this demonstrates

  • building card structure with commands
  • grouping facts for operators
  • sending the payload to a webhook

Source