Techit Tricks

You can download videos of CCNA | Azure | Vmware | AWS | Citrix | HP

Exchange Shell Commands / cmdlets - Useful Exchange cmdlets (Part 5)

Exchange Shell cmdlets




Script for Mailbox Movement :


$AdminSessionADSettings.ViewEntireForest=$true


Get-Mailbox -ResultSize Unlimited | where {$_.Database -eq "Database Path"}


Get-MailboxDatabase " Database Path " | Get-MailboxStatistics | ft DisplayName, LastLoggedOnUserAccount, ServerName, DatabaseName, ItemCount, TotalItemSize


Get-Content 1.TXT | Move-Mailbox -TargetDatabase ‘Database Path’  -BadItemLimit 100  -maxthreads 6 >>.\1_out.txt


Points to note:

Ensure the log drive is not running out of disc space

Dont delete the database without ensuring, no mailboxes reside in it



Public Folder Access :


Get-PublicFolderClientPermission -Identity "\NAME OF PF" | fl


EmoticonEmoticon