Job Options

PowerShell script exchange

Job Options

Veeam Logoby Jack1874 » Thu Nov 26, 2015 7:32 pm

Hello, I'm looking to query list the options for all my jobs.

In particular I'd like to list the "Weekly on Selected days" that is configured for the Active Full (with the Advanced Settings)

I found the following code and was looking to modify it. I was wondering how I can locate the options settings for the "Weekly on Selected days" so that I could modify the code?

Could someone show me how to list all options for all objects

Code: Select all
#Initialize Veeam PS Snapin
asnp VeeamPSSnapin -ErrorAction Continue

#Get Desired Job options from all your Backup Jobs

Get-VBRJob | ? {$_.jobtype -eq "Backup"} |
Select-Object -Property @{N="Job Name"; E={$_.name}},
@{N = "Compression Level" ; E = {[b]$_.GetOptions().BackupStorageOptions.CompressionLevel[/b]}},
@{N = "Dedup Block Size" ; E = {[b]$_.GetOptions().BackupStorageOptions.StgBlockSize[/b]}},
@{N = "SAN Integration" ; E = {[b]$_.GetOptions().SanIntegrationOptions.UseSanSnapshots}[/b]} |
Format-Table -AutoSize
Jack1874
Enthusiast
 
Posts: 88
Liked: 4 times
Joined: Sat Oct 17, 2015 3:32 pm
Location: Canada
Full Name: Stuart Little

Re: Job Options

Veeam Logoby v.Eremin » Fri Nov 27, 2015 10:31 am

Check the following script:
Code: Select all
Get-VBRJob | ? {$_.jobtype -eq "Backup"} | Select-Object -Property @{N="Job Name"; E={$_.name}}, @{N = "Compression Level" ; E = {$_.GetOptions().BackupStorageOptions.CompressionLevel}}, @{N = "Dedup Block Size" ; E = {$_.GetOptions().BackupStorageOptions.StgBlockSize}},@{N = "SAN Integration" ; E = {$_.GetOptions().SanIntegrationOptions.UseSanSnapshots}}, @{N = "Active full enabled" ; E = {$_.GetOptions().BackupStorageOptions.EnableFullBackup}}, @{N = "Active full days" ; E = {$_.GetOptions().BackupTargetOptions.FullBackupDays}} | Format-Table -AutoSize


Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests