diff --git a/functions/Test-DbaMaxDop.ps1 b/functions/Test-DbaMaxDop.ps1 index 2d8674b199..9ba99f6a4a 100644 --- a/functions/Test-DbaMaxDop.ps1 +++ b/functions/Test-DbaMaxDop.ps1 @@ -211,7 +211,9 @@ function Test-DbaMaxDop { } } } - Select-DefaultView -InputObject $collection -Property ComputerName, InstanceName, SqlInstance, Database, DatabaseMaxDop, CurrentInstanceMaxDop, RecommendedMaxDop, Notes } } + end { + Select-DefaultView -InputObject $collection -Property ComputerName, InstanceName, SqlInstance, Database, DatabaseMaxDop, CurrentInstanceMaxDop, RecommendedMaxDop, Notes + } }