Below you can find an example how to read the Successfull VMs from last backup run an place it as file in the backup folder.
In case of a restore you can start the 3rd party restore wizard and search for the VM names and the folder where they where backed up.
This is an example script it should be modified for your needs.
Code: Select all
asnp "VeeamPSSnapIn" -ErrorAction SilentlyContinue
$Job = "WIN"
$JobPath = "c:\Backups\WIN"
$vbrsessions = Get-VBRBackupSession | Where-Object {$_.JobType -eq "Backup" -and $_.JobName -eq $Job} | Sort-Object CreationTimeUTC -Descending
$lastvbrsessions = $vbrsessions[0]
$successfulvms = $lastvbrsessions.gettasksessions() | Where-Object {$_.Status -ne "Failed"}
foreach ($vm in $successfulvms) {
$filetocreate = $JobPath+"\"+$vm.Name
" " > $filetocreate
}