Archive

Archive for August, 2018

[PS] Emptry recoverable and deleteditemcount

08/21/2018 No comments

Search-Mailbox -Identity “cbryant” -SearchDumpsterOnly -LogLevel “Suppress” -TargetMailbox “Discovery Search Mailbox” -TargetFolder “Target” -DeleteContent

Categories: Uncategorized Tags:

[PS]Delete and recreate discovery shared mailbox

08/17/2018 No comments

• Remove-Mailbox “DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}”
• New-Mailbox -Name “DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}” -Alias “DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}” -DisplayName “Discovery Search Mailbox” -Discovery
• Add-MailboxPermission “DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}” -User “Discovery Management” -AccessRights FullAccess -InheritanceType all
• Hide from GAL

Categories: Uncategorized Tags:

[PS] Find the oldest e-mail in EXCH mailbox

08/03/2018 No comments

Find the oldest e-mail in EXCH mailbox
——————————————————————–
Get-MailboxFolderStatistics -IncludeOldestAndNewestItems -Identity | Where OldestItemReceivedDate -ne $null | Sort OldestItemReceivedDate | Select -First 1 OldestItemReceivedDate

Categories: Uncategorized Tags: