forked from AsBuiltReport/AsBuiltReport.Veeam.VBR
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AsBuiltReport#140 from rebelinux/dev
v0.8.5
- Loading branch information
Showing
6 changed files
with
175 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
function Get-AbrVbrHistorySetting { | ||
<# | ||
.SYNOPSIS | ||
Used by As Built Report to returns Email Notification settings configured on Veeam Backup & Replication.. | ||
.DESCRIPTION | ||
Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. | ||
.NOTES | ||
Version: 0.8.5 | ||
Author: Jonathan Colon | ||
Twitter: @jcolonfzenpr | ||
Github: rebelinux | ||
Credits: Iain Brighton (@iainbrighton) - PScribo module | ||
.LINK | ||
https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VBR | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
|
||
) | ||
|
||
begin { | ||
Write-PscriboMessage "Discovering Veeam VBR History settings information from $System." | ||
} | ||
|
||
process { | ||
try { | ||
$HistorySettings = Get-VBRHistoryOptions | ||
if ($HistorySettings) { | ||
Section -Style Heading4 'History Retention' { | ||
$OutObj = @() | ||
$inObj = [ordered] @{ | ||
'Keep All Sessions' = ConvertTo-TextYN $HistorySettings.KeepAllSessions | ||
'Retention Limit' = "$($HistorySettings.RetentionLimitWeeks) weeks" | ||
} | ||
$OutObj = [pscustomobject]$inobj | ||
|
||
$TableParams = @{ | ||
Name = "History Settings - $VeeamBackupServer" | ||
List = $true | ||
ColumnWidths = 40, 60 | ||
} | ||
if ($Report.ShowTableCaptions) { | ||
$TableParams['Caption'] = "- $($TableParams.Name)" | ||
} | ||
$OutObj | Table @TableParams | ||
} | ||
} | ||
} | ||
catch { | ||
Write-PscriboMessage -IsWarning "History Setting Section: $($_.Exception.Message)" | ||
} | ||
} | ||
end {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters