Files
Intune/dump/WSUS_Scripts/Old-Scripts/Start-Backups.ps1

7 lines
543 B
PowerShell

#Enable VEEAM Job Scheduler at the end of maintenance
Add-PSSnapin -Name VeeamPSSnapIn
Connect-VBRServer -Server PVEB001
Get-VBRJob | where {$_.JobTargetType -eq "Backup" -and $_.IsScheduleEnabled -eq $true} | Enable-VBRJobSchedule
Disconnect-VBRServer
Send-MailMessage -SmtpServer smtp.ccx.carecentrix.com -To windows-admins@carecentrix.com -From backups@carecentrix.com -Subject "Veeam Backups Started" -Body "The Veeam Backup Jobs have been rescheduled after the infrastructure weekend.Please verify they are running as expected."
Exit