PowerShell script exchange
Post Reply
twesterd
Influencer
Posts: 17
Liked: 3 times
Joined: May 17, 2017 7:38 pm
Full Name: Trevor W
Contact:

Adding VM to Job - Objects in Job Don't Update

Post by twesterd »

I am essentially running this PowerShell script:

Code: Select all

$job = Get-VBRJob -Name "Backup Job Name"
$Vm = Find-VBRViEntity -Name "VMName"
Add-VBRViJobObject -Job $job -Entities $Vm
The code runs fine and the VM is added to the job... but... when I look at the GUI in Veeam, the number of objects in the job doesn't update for some time... minutes (granted, server was busy at the time). Also, the Total Size value doesn't update ever unless I edit the job and manually hit recalculate.

Is this normal?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Adding VM to Job - Objects in Job Don't Update

Post by veremin »

Correct, Total Size doesn't get recalculated automatically, when you add a new object to a job via PowerShell. As to objects' update taking some time, busy SQL might have been a reason for that. Thanks.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 13 guests