Created
July 18, 2020 21:31
-
-
Save CoreyWycliffe/0f718501325d53b9f85cd02846f9d088 to your computer and use it in GitHub Desktop.
Powershell send message to slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$payload = @{ | |
"text" = "Testing a message from Powershell"; | |
} | |
Invoke-WebRequest ` | |
-Body (ConvertTo-Json -Compress -InputObject $payload) ` | |
-Method Post -Uri "{SLACK_HOOK_URL}" | Out-Null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment