Skip to content

Commit

Permalink
Merge pull request #2263 from microsoft/bilong-2258
Browse files Browse the repository at this point in the history
Do not require domain admin to remove orphanedMPF
  • Loading branch information
dpaulson45 authored Dec 18, 2024
2 parents 8cea877 + eee918a commit f635033
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ function Write-TestMailEnabledFolderResult {
"or use a command like this to delete them all:`n`n" +
"Import-Csv .\ValidationResults.csv |`n" +
" ? ResultType -eq OrphanedMPF |`n" +
" % {`n" +
" `$folder = ([ADSI](`"LDAP://`$(`$_.FolderIdentity)`"))`n" +
" `$parent = ([ADSI]`"`$(`$folder.Parent)`")`n" +
" `$parent.Children.Remove(`$folder)`n" +
" }")
" % { Disable-MailPublicFolder `$_.FolderIdentity }")
}

if ($orphanedMPFDuplicateResults.Count -gt 0) {
Expand Down

0 comments on commit f635033

Please sign in to comment.