Send-TeamsWoof

SYNOPSIS

Sends a dog image & fact to a Teams channel

SYNTAX

Send-TeamsWoof [-TeamsUri] <String> [<CommonParameters>]

DESCRIPTION

The Send-TeamsWoof cmdlet sends a dog image & fact to a Teams channel using a Teams webhook connector URI.

Various filters are in place to try and prevent any inappropriate images from being sent.

An image is randomly selected from a random dog subreddit. Dog facts are pulled from the dogapi.dog API

Unless the -Verbose parameter is used, no output is displayed

EXAMPLES

EXAMPLE 1

.\Send-TeamsWoof.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/123/123/.....'

Using the defined webhooks connector URI a random dog image & fact are sent to the webhooks Teams channel

No output is displayed to the console.

EXAMPLE 2

.\Send-TeamsWoof.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/123/123/.....' -Verbose

Using the defined webhooks connector URI a random dog image & fact are sent to the webhooks Teams channel.

Output is displayed to the console.

PARAMETERS

-TeamsUri

A string that defines where the Microsoft Teams connector URI sends information to

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

TeamsURI

OUTPUTS

Console

NOTES

NAME: Send-TeamsWoof.ps1 Type: PowerShell

AUTHOR:  David Schulte
DATE:    2022-06-20
EMAIL:   celerium@celerium.org
Updated:
Date:

VERSION HISTORY: 0.1 - 2022-06-20 - Initial Release 0.2 - 2024-12-15 - General cleanup

TODO: N\A

https://www.celerium.org