Below are the scripts for the disable and enable, including batch file (<FQDN> is a place holder for the Fully Qualified Domain Name, which is in the script).
Disable:
Code: Select all
Add-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue
Disconnect-VBRServer
Connect-VBRServer -server <FQDN>
Get-VBRTapeJob -Name "Weekly Full to Tape AM", "Weekly Full to Tape PM" | Disable-VBRJob | out-null
Write-Host -ForegroundColor DarkGreen "Done"
Code: Select all
Add-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue
Disconnect-VBRServer
Connect-VBRServer -server <FQDN>
Get-VBRTapeJob -Name "Weekly Full to Tape AM", "Weekly Full to Tape PM" | Enable-VBRJob | out-null
Write-Host -ForegroundColor DarkGreen "Done"
Code: Select all
@ECHO OFF
Powershell.exe -ExecutionPolicy ByPass -File C:\VeeamScripts\WeeklyEnable.ps1
EXIT
Code: Select all
@ECHO OFF
Powershell.exe -ExecutionPolicy ByPass -File C:\VeeamScripts\WeeklyDisable.ps1
EXIT