PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 823
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

VeeamAgent job and powershell

Post by matteu »

Hello,

I create backup job agent and I would like to know all the object processed by the job.
I use backup mode : Volume level backup
On object Tab : I select OS volume

Powershell commandlet is : Get-VBRComputerBackupJob
To know what are the selected volume it's : (Get-VBRComputerBackupJob).SelectedVolumes

It doesn't work for "OS volume" but it works if I write E: or D:.

Is there any way to have what I want ?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: VeeamAgent job and powershell

Post by oleg.feoktistov » 1 person likes this post

Hi,

Apparently, this indication is missing in VBRComputerBackupJob class. I noted it as an enhancement request.
For now, you could use the workaround below:

Code: Select all

$job = Get-VBRJob -Name 'Windows Agent Backup Job'
$job.Options.EpPolicyOptions.BackupSystemState # true if OS volume is included
The cmdlet is no longer supported for agent management jobs, but this option works fine.

Best regards,
Oleg
matteu
Veeam Legend
Posts: 823
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: VeeamAgent job and powershell

Post by matteu »

Thanks for your answer :)
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests