Everything worked before the last update I did. The last time I had this issue was due to the account it ran it as not having the permissions needed in Veeam (as indicated in my original post). Once the service account was added to Veeam as an Administrator, it worked without an issue. The script does generate the data I need when I run it manually, but if I have a job run it then it is blank (aside from the formatting of the report). Is there a place I can look to confirm what account Veeam will be running the report as?
This script is used to disable my Weekly Tape Backup Job when the Monthly or Yearly Tape Backup Job runs (they are set to run before the Weekly Tape Backup Job). Before anyone starts posting that I could do this with the GFS pool, the issue I have with the GFS pool is the Yearly job. It does not allow me to set when the yearly gets backup as precisely as I want (we do ours on the 3rd Monday in March, the Yearly is locked into January when you use Day of the Week). GFS also does not do parallel processing. So, I have 3 sets of pools for the Weekly, Monthly, and Yearly. The AM and PM thing is because I have two Tape Libraries doing the backups, one is handling my AM jobs and the other handles the PM jobs.
- Code: Select all
Add-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue
Connect-VBRServer -server <Server FQDN>
Get-VBRTapeJob -Name "Weekly Full to Tape AM", "Weekly Full to Tape PM" | Disable-VBRJob | out-null
Write-Host -ForegroundColor DarkGreen "Done"
Sensitive information has been replaced with a place holder between < >. In the script, this information is filled out correctly. This script fails, just like the other ones I have that generate a report. The report completes and I can view it, but there is not data in it except the formatting.