From eee918a580aeba76048693439c2006946f5ec461 Mon Sep 17 00:00:00 2001 From: Bill Long Date: Wed, 18 Dec 2024 13:50:55 -0600 Subject: [PATCH] Do not require domain admin to remove orphanedMPF Fixes #2258 --- .../MailEnabledFolder/Write-TestMailEnabledFolderResult.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PublicFolders/SourceSideValidations/Tests/MailEnabledFolder/Write-TestMailEnabledFolderResult.ps1 b/PublicFolders/SourceSideValidations/Tests/MailEnabledFolder/Write-TestMailEnabledFolderResult.ps1 index 0a09eac44..d97dde777 100644 --- a/PublicFolders/SourceSideValidations/Tests/MailEnabledFolder/Write-TestMailEnabledFolderResult.ps1 +++ b/PublicFolders/SourceSideValidations/Tests/MailEnabledFolder/Write-TestMailEnabledFolderResult.ps1 @@ -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) {