diff --git a/Get-BackupCapacityPlanningData.ps1 b/Get-BackupCapacityPlanningData.ps1 index 2536c2c..ed2f6a6 100644 --- a/Get-BackupCapacityPlanningData.ps1 +++ b/Get-BackupCapacityPlanningData.ps1 @@ -104,11 +104,11 @@ ForEach ( $plan in $BackupPlans ) { Use-Path -List $ExcludedPaths -Path $path } } - + # Print all paths in $IncludedPaths If ( $IncludedPaths.Length -gt 0 ) { Write-Output "Paths to backup:" - ForEach ( $path in $IncludedPaths ) { Write-Output $path } + ForEach ( $path in ($IncludedPaths | Sort-Object) ) { Write-Output $path } } # Define $MaxFileSize if it exists, or set it to the max value of a long to bypass it