I like to get the output:
<vmname>,<drive>:\path\to\<vmname>.vbm
for example:
vm1,e:\backups\vm1_job\vm1.vbm
vm2,e:\backups\vm2_job\vm2.vbm
But did did not know how
Tryed with: Get-VBRBackupRepository
but only get e:\backups for example....
and with: Get-VBRBackupFile
VMNames i can get with:
Code: Select all
$jobarray = Get-VBRJob
foreach ($job in $jobarray)
{
$vm=Get-VBRJobObject -Job $job.name
$vm.name
}