Skip to content

Commit

Permalink
Merge pull request #2269 from microsoft/bilong-mepf
Browse files Browse the repository at this point in the history
Fixes #2267
  • Loading branch information
dpaulson45 authored Jan 16, 2025
2 parents 61ec703 + 66e65f9 commit 877d115
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PublicFolders/SourceSideValidations/SourceSideValidations.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -180,43 +180,43 @@ try {
}

if ($folderData.Errors.Count -gt 0) {
$folderData.Errors | Export-Csv $ResultsFile -NoTypeInformation
$folderData.Errors | Export-Csv $ResultsFile -NoTypeInformation -Encoding UTF8
}

if ("Dumpsters" -in $Tests) {
Write-Progress @progressParams -Status "Step 2 of 6"

$badDumpsters = Test-DumpsterMapping -FolderData $folderData
$badDumpsters | Export-Csv $ResultsFile -NoTypeInformation -Append
$badDumpsters | Export-Csv $ResultsFile -NoTypeInformation -Append -Encoding UTF8
}

if ("Limits" -in $Tests) {
Write-Progress @progressParams -Status "Step 3 of 6"

# This test emits results in a weird order, so sort them.
$limitsExceeded = Test-FolderLimit -FolderData $folderData | Sort-Object FolderIdentity
$limitsExceeded | Export-Csv $ResultsFile -NoTypeInformation -Append
$limitsExceeded | Export-Csv $ResultsFile -NoTypeInformation -Append -Encoding UTF8
}

if ("Names" -in $Tests) {
Write-Progress @progressParams -Status "Step 4 of 6"

$badNames = Test-FolderName -FolderData $folderData
$badNames | Export-Csv $ResultsFile -NoTypeInformation -Append
$badNames | Export-Csv $ResultsFile -NoTypeInformation -Append -Encoding UTF8
}

if ("MailEnabled" -in $Tests) {
Write-Progress @progressParams -Status "Step 5 of 6"

$badMailEnabled = Test-MailEnabledFolder -FolderData $folderData
$badMailEnabled | Export-Csv $ResultsFile -NoTypeInformation -Append
$badMailEnabled | Export-Csv $ResultsFile -NoTypeInformation -Append -Encoding UTF8
}

if ("Permissions" -in $Tests) {
Write-Progress @progressParams -Status "Step 6 of 6"

$badPermissions = Test-Permission -FolderData $folderData
$badPermissions | Export-Csv $ResultsFile -NoTypeInformation -Append
$badPermissions | Export-Csv $ResultsFile -NoTypeInformation -Append -Encoding UTF8
}

Write-Progress @progressParams -Completed
Expand Down

0 comments on commit 877d115

Please sign in to comment.