Skip to content

Instantly share code, notes, and snippets.

@SweetAsNZ
Created December 2, 2022 04:12
Show Gist options
  • Save SweetAsNZ/004bbc40855083b42f48d4feafed4fce to your computer and use it in GitHub Desktop.
Save SweetAsNZ/004bbc40855083b42f48d4feafed4fce to your computer and use it in GitHub Desktop.
Get Veeam Job Sizes
. 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