Archive for the ‘MBX’ Category
Single item recovery
I am often approached by clients on Exchange’s singel item recovery feature. Without tools you can only configure the single item recovery feature PowerShell. This article will provide an overview of the necessary steps. Activation in Exchange 2010 Activate single-item-recovery for all users get-mailbox -RecipientType ‘UserMailbox’ | Set-Mailbox -SingleItemRecoveryEnabled $true Set the deleted-item retention for all databases to […]
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: exchange, item, powershell, recovery, single
Hi folks, for several times I wanted to dismount and re-mount one or more mailbox databases from an Exchange 2010 server. It’s a hard way to do this with the EMC so i figured out the PowerShell commands to do this quick and easy. Dismount one database: Dismount-Database -Identity DBNAME -Confirm:$False Dismount all databases of […]
Filed under: Exchange 2010, MBX, Powershell | 1 Comment
Tags: 2010, database, dismoun, dismoun-database, exchange, mount, mount-database, powershell
If not configured Exchange sets the standard notification schedule to monday, 4 a.m. once a week. To bulk change this, you have to edit all databases properties with the EMC or simply run the following PowerShell command with equals the GUI setting “Daily 2 a.m.” : Get-MailboxDatabase | Set-MailboxDatabase -QuotaNotificationSchedule ‘So.02:00-So.02:15, Mo.02:00-Mo.02:15, Di.02:00-Di.02:15, Mi.02:00-Mi.02:15, Do.02:00-Do.02:15, […]
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: 2010, change, database, ems, exchange, get-mailboxdatabase, mailbox, mailboxdatabase, notification, period, powershell, quota, set-mailboxdatabase
If you run a multi-site DAG over subnets, it could happen, that you have anomalous database switchovers within your DAG. In the event log is triggered, that the FailoverCluster service has lost its heartbeat. This happens because of the WAN connections latency. You could avoid this behaviour with the cluster.exe command: cluster /prop SameSubnetDelay=2000:DWORD cluster […]
Filed under: Exchange 2010, MBX | 2 Comments
Tags: cross, dag, database, delay, heratbeat, latency, site, subnet, switchover
Change DAG Replication port
By default the Exchange 2010 DAG replication port is set to 64327 TCP. You can change the port with the following command: Set-DatabaseAvailabilityGroup -Identity YOURDAG -ReplicationPort YOURPORT Choose a valid value from 1 to 65535 and keep the firewall setup in mind. Cheers, Chris
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: 2010, 64327, availability, dag, database, exchange, firewall, group, port, replication, tcp
Here comes the command to get an overview over recoverable items in a mailbox: Get-MailboxFolderStatistics -Identity user@domain.com -FolderScope RecoverableItems | Format-Table Name,FolderPath,ItemsInFolder,FolderAndSubfolderSize Regards, Chris
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: 2010, deleted, exchange, folder, get-mailboxfolderstatistics, items, mailbox, path, recoverable, statisitics
With this command you get an overview over a certain user’s mailbox folders: Get-MailboxFolderStatistics user@domain.com | ft folderpath, itemsinfolder You can limit this to special folder, too: Get-MailboxFolderStatistics -identity user@domain.com -FolderScope ‘DeletedItems’ | Select Identity, FolderPath, ItemsInFolder, FolderSize Cheers, Chris
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: 2010, ems, exchange, folder, mailbox, overview, powershell, statistics, user
An overview over mailbox sizes ordered by item size and conversion to MB Get-Mailbox -RecipientType ‘UserMailbox’ -ResultSize unlimited | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto Cheers, Chris
Filed under: Exchange 2010, MBX, Powershell | 2 Comments
Tags: 2010, conversion, exchange, limit, mailboxes, overview, statistics, storage
With this script you can get a quick overview over your DB’s replication health, queue length and status. Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus -ConnectionStatus | Sort-Object -Property name,status | ft Cheers, Chris
Filed under: Exchange 2010, MBX, Powershell | Leave a Comment
Tags: connection, copy, database, exchange, health, length, powershell, queue, replication, status
With this PowerShell command you get an overview of database sizes, last full backups and active servers. (get-mailboxdatabase -status) | foreach-object {write-host $_Server $_.Name $_.lastfullbackup $_.databasesize} Cheers, Chris
Filed under: Exchange 2010, MBX, Powershell | 3 Comments
Tags: 2010, backup, database, exchange, full, mailbox, overview, powershell