@@ -6,7 +6,7 @@ function Get-AbrVbrBackupProxy {
66 . DESCRIPTION
77 Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo.
88 . NOTES
9- Version: 0.8.12
9+ Version: 0.8.14
1010 Author: Jonathan Colon
1111 Twitter: @jcolonfzenpr
1212 Github: rebelinux
@@ -159,7 +159,7 @@ function Get-AbrVbrBackupProxy {
159159 ' Processor Model' = $HWCPU [0 ].Name
160160 ' Number of CPU Cores' = $HWCPU [0 ].NumberOfCores
161161 ' Number of Logical Cores' = $HWCPU [0 ].NumberOfLogicalProcessors
162- ' Physical Memory (GB)' = ConvertTo-FileSizeString - Size $HW.CsTotalPhysicalMemory
162+ ' Physical Memory (GB)' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HW.CsTotalPhysicalMemory
163163 }
164164 $OutObj += [pscustomobject ](ConvertTo-HashToYN $inObj )
165165
@@ -193,7 +193,7 @@ function Get-AbrVbrBackupProxy {
193193 ' Model' = $Disk.Model
194194 ' Serial Number' = $Disk.SerialNumber
195195 ' Partition Style' = $Disk.PartitionStyle
196- ' Disk Size' = ConvertTo-FileSizeString - Size $Disk.Size
196+ ' Disk Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $Disk.Size
197197 }
198198 $LocalDiskReport += $TempLocalDiskReport
199199 } catch {
@@ -229,7 +229,7 @@ function Get-AbrVbrBackupProxy {
229229 ' Model' = $Disk.Model
230230 ' Serial Number' = $Disk.SerialNumber
231231 ' Partition Style' = $Disk.PartitionStyle
232- ' Disk Size' = ConvertTo-FileSizeString - Size $Disk.Size
232+ ' Disk Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $Disk.Size
233233 }
234234 $SanDiskReport += $TempSanDiskReport
235235 } catch {
@@ -262,8 +262,8 @@ function Get-AbrVbrBackupProxy {
262262 ' Drive Letter' = $HostVolume.DriveLetter
263263 ' File System Label' = $HostVolume.FileSystemLabel
264264 ' File System' = $HostVolume.FileSystem
265- ' Size' = ConvertTo-FileSizeString - Size $HostVolume.Size
266- ' Free Space' = ConvertTo-FileSizeString - Size $HostVolume.SizeRemaining
265+ ' Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HostVolume.Size
266+ ' Free Space' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HostVolume.SizeRemaining
267267 ' Health Status' = $HostVolume.HealthStatus
268268 }
269269 $HostVolumeReport += $TempHostVolumeReport
@@ -611,7 +611,7 @@ function Get-AbrVbrBackupProxy {
611611 ' Processor Model' = $HWCPU [0 ].Name
612612 ' Number of CPU Cores' = $HWCPU [0 ].NumberOfCores
613613 ' Number of Logical Cores' = $HWCPU [0 ].NumberOfLogicalProcessors
614- ' Physical Memory (GB)' = ConvertTo-FileSizeString - Size $HW.CsTotalPhysicalMemory
614+ ' Physical Memory (GB)' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HW.CsTotalPhysicalMemory
615615 }
616616 $OutObj += [pscustomobject ](ConvertTo-HashToYN $inObj )
617617
@@ -645,7 +645,7 @@ function Get-AbrVbrBackupProxy {
645645 ' Model' = $Disk.Model
646646 ' Serial Number' = $Disk.SerialNumber
647647 ' Partition Style' = $Disk.PartitionStyle
648- ' Disk Size' = ConvertTo-FileSizeString - Size $Disk.Size
648+ ' Disk Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $Disk.Size
649649 }
650650 $LocalDiskReport += $TempLocalDiskReport
651651 } catch {
@@ -681,7 +681,7 @@ function Get-AbrVbrBackupProxy {
681681 ' Model' = $Disk.Model
682682 ' Serial Number' = $Disk.SerialNumber
683683 ' Partition Style' = $Disk.PartitionStyle
684- ' Disk Size' = ConvertTo-FileSizeString - Size $Disk.Size
684+ ' Disk Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $Disk.Size
685685 }
686686 $SanDiskReport += $TempSanDiskReport
687687 } catch {
@@ -717,8 +717,8 @@ function Get-AbrVbrBackupProxy {
717717 ' Drive Letter' = $HostVolume.DriveLetter
718718 ' File System Label' = $HostVolume.FileSystemLabel
719719 ' File System' = $HostVolume.FileSystem
720- ' Size' = ConvertTo-FileSizeString - Size $HostVolume.Size
721- ' Free Space' = ConvertTo-FileSizeString - Size $HostVolume.SizeRemaining
720+ ' Size' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HostVolume.Size
721+ ' Free Space' = ConvertTo-FileSizeString - RoundUnits $Options .RoundUnits - Size $HostVolume.SizeRemaining
722722 ' Health Status' = $HostVolume.HealthStatus
723723 }
724724 $HostVolumeReport += $TempHostVolumeReport
0 commit comments