Commit 8ba40bff authored by mseng3's avatar mseng3
Browse files

Update post-to-slack.ps1

parent 34b96706
......@@ -46,7 +46,10 @@ Write-Output "$payload"
# A better solution would be to change the system default TLS version to something higher than v1.1.
# https://api.slack.com/changelog/2019-07-deprecate-early-tls-versions
# https://www.reddit.com/r/PowerShell/comments/7zr0yu/invokewebrequest_windows_powershell_51_is_scaring/
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
#[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
# https://github.com/RamblingCookieMonster/PSSlack/blob/master/PSSlack/PSSlack.psm1
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
# Send REST call
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-5.1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment