Created
December 2, 2022 04:12
-
-
Save SweetAsNZ/004bbc40855083b42f48d4feafed4fce to your computer and use it in GitHub Desktop.
Get Veeam Job Sizes
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
. C:\SCRIPTS\VEEAM\Connect-Veeam\Connect-Veeam.ps1 # Load the Connect Veeam Function | |
Connect-Veeam -VeeamServer $ENV:COMPUTERNAME | |
$JobSizes = Get-VBRBackup | Select @{N="Job Name";E={$_.Name}}, @{N="Size (GB)";E={[math]::Round(($_.GetAllStorages().Stats.BackupSize | | |
Measure-Object -Sum).Sum/1GB,1)}} | |
$JobSizes | Format-Table -AutoSize | |
$JobSizes | Export-CSV -NoTypeInformation $OutJobSizes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment