Skip to content

Instantly share code, notes, and snippets.

@CoreyWycliffe
Created July 18, 2020 21:31
Show Gist options
  • Save CoreyWycliffe/0f718501325d53b9f85cd02846f9d088 to your computer and use it in GitHub Desktop.
Save CoreyWycliffe/0f718501325d53b9f85cd02846f9d088 to your computer and use it in GitHub Desktop.
Powershell send message to slack
$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