Skip to content

Commit

Permalink
Do not require domain admin to remove orphanedMPF
Browse files Browse the repository at this point in the history
Fixes #2258
  • Loading branch information
bill-long authored and dpaulson45 committed Dec 18, 2024
1 parent 8cea877 commit eee918a
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 eee918a

Please sign in to comment.