User Tools

Site Tools


internet:mail:exchange:exchange_storage

Microsoft Exchange Storage

Exchange 2013

Move Exchange Database

http://exchangeserverpro.com/exchange-2013-move-database-to-new-folder-path/

Adjust to meet your needs:

Move-DatabasePath "Mailbox Database 1480691381" -EdbFilePath "E:\Exchange\Mailbox Database 1480691381.edb" -LogFolderPath "E:\Exchange\Mailbox Database 1480691381"

Move Mailboxes to Another Database

http://www.azure365pro.com/how-to-remove-exchange-2013-default-databasesrecommended-way/

https://justaucguy.wordpress.com/2012/10/05/exchange-server-2013-preview-remove-original-database/

Useful commands:

Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize

Get-Mailbox -Arbitration | Where {$_.Name -like "SystemMailbox*" } | ft -wrap

Get-Mailbox -Arbitration -Database "Mailbox Database 0205328201"

Get-Mailbox -Arbitration -Database "Mailbox Database 0205328201" | New-MoveRequest -TargetDatabase "System"

Get-MoveRequest | Get-MoveRequestStatistics

Get-Mailbox -Database "Mailbox Database 0205328201"

New-MoveRequest -Identity "Discovery Search Mailbox" -TargetDatabase "System" -BatchName "Discovery Mailbox"

Get-Mailbox -Database "Mailbox Database 0205328201" | New-MoveRequest -TargetDatabase "MailboxDB1" -BatchName "All Mailboxes from Original DB"

Get-MoveRequest | Remove-MoveRequest -Confirm:$false

Failed Move

Delete a Database

Get-MailboxDatabase $olddb | Remove-MailboxDatabase

Repair a Mailbox

New-MailboxRepairRequest -Mailbox "Mailbox Name" -CorruptionType ProvisionedFolder,SearchFolder,aggregatecounts,folderview

Exchange 2010

Quotas

Show quota settings:

get-mailbox -server "server" -ResultSize unlimited | Where {$_.UseDatabaseQuotaDefaults -eq $false} | Sort-Object DisplayName | ft DisplayName,IssueWarningQuota,ProhibitSendQuota > C:\quota_exceptions.txt

Show quota usage:

get-mailbox -server "server" -ResultSize unlimited | Where {$_.UseDatabaseQuotaDefaults -eq $false} | Get-MailboxStatistics | Sort-Object DisplayName | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}} > C:\quota_exceptions_size.txt
internet/mail/exchange/exchange_storage.txt · Last modified: 2019/02/09 21:13 by gcooper