# Windows Startup/Shutdown, Logon/Logoff 시 알람
# Startup/Shutdown gpedit.msc - Computer Configuration - Windows Settings - Scripts (Startup/Shutdown) C:\Windows\System32\curl.exe -X POST --data-urlencode "payload={\"channel\": \"[#channel]\", \"username\": \"[username]\", \"text\": \"[text]\", \"icon_emoji\": \":watermelon:\"}" "[Slack api address]" # Logon/Logoff gpedit.msc - User Configuration - Windows Settings - Scripts (Logon/Logoff) C:\Windows\System32\curl.exe -X POST --data-urlencode "payload={\"channel\": \"[#channel]\", \"username\": \"[username]\", \"text\": \"[text]\", \"icon_emoji\": \":watermelon:\"}" "[Slack api address]"
# cmd.exe 실행시 알람
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor Key : AutoRun C:\Windows\System32\curl.exe -X POST --data-urlencode "payload={\"channel\": \"[#channel]\", \"username\": \"[username]\", \"text\": \"[text]\", \"icon_emoji\": \":watermelon:\"}" "[Slack api address]"