Created
June 18, 2020 21:19
-
-
Save bill-long/94ee980730e0fa6aedb5bca28eb6305e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\FolderA\Folder1" | % { | |
$folder = Get-PublicFolder $_ -Mailbox (Get-OrganizationConfig).RootPublicFolderMailbox.ToString() | |
$contentMailbox = $folder.ContentMailboxName | |
$dumpsterId = $folder.DumpsterEntryId | |
$dumpsterInContentMailbox = Get-PublicFolder $dumpsterId -Mailbox $contentMailbox -ErrorAction SilentlyContinue | |
if ($dumpsterInContentMailbox -ne $null) { | |
"Deletions should work." | |
} else { | |
"Deletions should not work." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment