PowerShell script exchange
Post Reply
pcontreras1125
Lurker
Posts: 1
Liked: never
Joined: Oct 01, 2018 5:12 pm
Full Name: Paul Contreras
Contact:

Creating a new job with Add-VBRViBackupJob doesnt import default advanced settings

Post by pcontreras1125 »

I was wondering if you folks can help me with using the previously 'Saved as Default' setting under Storage -> Advanced. When I create a backup job using the Add-VBRViBackupJob cmdlet it doesn't import those default settings. However, if i were to create the job manually, those settings that were previously saved as default are there. Here is a sample of the code.

Code: Select all

$VM = Find-VBRViEntity -Name 'Server01'
$VMDesc = "$VMName Backup"

Add-VBRViBackupJob -Name $VMName -Entity $VM -Description $VMDesc 
Then when I go Home -> Backup -> Edit Job Name -> Storage -Advanced none of the options are set.

Is there a way I can pull those default settings.

Thanks.
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Creating a new job with Add-VBRViBackupJob doesnt import default advanced settings

Post by veremin »

Correct, PowerShell doesn't preserve default advanced settings (it's more like a GUI only feature). You can configure them on one job and then use Copy-VBRJob cmdlet to create multiple jobs with the same options set. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests