Skip to content

Send notifications to various web services from PowerShell

License

Notifications You must be signed in to change notification settings

GSGBen/Posh-Notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posh-Notify

Send yourself or your team notifications from within a powershell script. Alert when a task is done or something needs attention. Keep a list of all actions. Play audible beeps when a local task has finished.

Usage

# get the module
Install-Module Posh-Notify

# set a default channel to send to
$Global:TeamsWebhook = "<webhook from teams channel>"
# set a default mailbox to send to
$Global:OutlookWebhook = "<webhook from OWA (see below)>"

# send messages
Notify-Teams "test"
Get-ChildItem | Notify-Teams -Webhook "<different channel's webhook>"
Notify-Outlook "test"
# etc

# play sounds on completion
Start-LongTask; Beep 2000 500
Wait-ForThingsToFinish; Arpeggio

Getting a Teams webhook

Right click on the channel -> connectors -> add webhook and copy URL

Getting an Outlook Webhook

Office 365 only. Log into https://outlook.office365.com/owa -> gear icon in the top right -> manage connectors > add webhook and copy URL.

About

Send notifications to various web services from PowerShell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published