diff --git a/modules/AdminToolbox.Office365/ChangeLog.md b/modules/AdminToolbox.Office365/ChangeLog.md index f1fbbd4d..fd0ed88a 100644 --- a/modules/AdminToolbox.Office365/ChangeLog.md +++ b/modules/AdminToolbox.Office365/ChangeLog.md @@ -220,4 +220,5 @@ * **4.0.32** CI Maintenance Release * **4.0.33** CI Maintenance Release * **4.1.0** Update pnp module functions to login using the new app registration method. -* **4.1.1** CI Maintenance Release \ No newline at end of file +* **4.1.1** CI Maintenance Release +* **4.1.2** Add size unit descriptors to pscustomobject File Size results \ No newline at end of file diff --git a/modules/AdminToolbox.Office365/Public/Remove-VersionHistoryOlderThan.ps1 b/modules/AdminToolbox.Office365/Public/Remove-VersionHistoryOlderThan.ps1 index 1ea92ce1..0d277df7 100644 --- a/modules/AdminToolbox.Office365/Public/Remove-VersionHistoryOlderThan.ps1 +++ b/modules/AdminToolbox.Office365/Public/Remove-VersionHistoryOlderThan.ps1 @@ -78,7 +78,7 @@ function Remove-VersionHistoryOlderThan { [PSCustomObject]@{ Deleted = Write-Output "true" VersionLabel = $version.VersionLabel - FileSize = "{0}" -f ($version.Size / 1MB) + FileSizeMB = "{0}" -f ($version.Size / 1MB) FileName = $item.FieldValues.FileLeafRef FullPath = $item.FieldValues.FileRef ListName = $listName @@ -91,7 +91,7 @@ function Remove-VersionHistoryOlderThan { [PSCustomObject]@{ Deleted = Write-Output "false" VersionLabel = $version.VersionLabel - FileSize = $null + FileSizeMB = $null FileName = $item.FieldValues.FileLeafRef FullPath = $item.FieldValues.FileRef ListName = $listName