Send Push notifications with PowerShell to your phone

Опубликовано: 13 Октябрь 2024
на канале: SysAdmin Tools Com
1,247
16

Send push notifications to your phone using only 6 lines of code.
https://sysadmin-tools.com

This uses the Pushover App

$nvc = New-Object System.Collections.Specialized.NameValueCollection

$nvc.Add("token",'agcg2bh3shfqbc2qmr67uybrfg3g9c')

$nvc.Add("user",'ujhzd62jy2qroukzjspxpbvyya14m1')

$nvc.Add("message",”Test Message”)

$wc = new-object System.Net.WebClient

$wc.UploadValues("https://api.pushover.net/1/messages.json",$nvc)