[파워쉘]veeam 백업결과 텔레그램 푸시 스크립트
# Script/Powershell2020. 3. 2. 13:57[파워쉘]veeam 백업결과 텔레그램 푸시 스크립트

Add-PSSnapin VeeamPSSnapin $vmjobname = "test" $vmjob = get-vbrjob -name $vmjobname while ($vmjob.isrunning -eq "true") { start-sleep -s 60 } $vmresult = $vmjob.findlastsession().result [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $token = "######################" $chatId = "#####################" $message = $vmjobname + " 백업결과 " + $vmresult Invoke-RestMethod -..

image