The BE batch file is as follows
powershell.exe c:\scripts\runjob3.ps1
The power shell script is as follows
Code: Select all
Add-PSSnapin VeeamPSSnapIn
Get-VBRJob | where {$_.name -eq "POMS"} | Start-VBRJob
The problem however is that poweshell passes back control to the batch file before the Veeam job is complete, this allows the copy to tape to start and then Veeam detects a file in use conflict and fails.
Does anyone know how to get around this?