Techit Tricks

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

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


Exchange Shell cmdlets Part 6



RSG Dismount removal :


dismount-database " ServerName\StorageGroupName\DatabaseName \mdb a" -confirm:$false


dismount-database " ServerName\StorageGroupName\DatabaseName " -confirm:$false


remove-mailboxdatabase " ServerName\StorageGroupName\DatabaseName " -confirm:$false


remove-storagegroup " ServerName\StorageGroupName “  -confirm:$false



If we are getting errors while dismounting the RSG DB, we can try this.


Dismount-Database -Identity "ServerName\StorageGroupName\DatabaseName" -ErrorAction: SilentlyContinue




To Restore Mailbox :


Restore-Mailbox –RSGMailbox “Test User 1” -RSGDatabase “servername\RSG name\database name” –Identity “Test User 2” –TargetFolder “Test User 1 Recovered data”




To Set Mailbox Quota :


Set-Mailbox -Identity [email protected] -IssueWarningQuota 209715200 -ProhibitSendQuota 262144000 -ProhibitSendReceiveQuota 293601280 -UseDatabaseQuotaDefaults $false


get-content size.txt | Set-Mailbox -ProhibitSendQuota 512000 -UseDatabaseQuotaDefaults $false

(Note : [email protected] (user’s Email ID) and 209715200 , 293601280 , 293601280 (Size in KBs))


EmoticonEmoticon