Category Archives: Exchange 2010

Exchange logs filled up without space for backup

Enable or Disable Circular Logging in Exchange 2010

Via EMC
1.Under Organization Configuration click on Mailbox;
2.Click on Database Management where you find Databases;
3.Take properties by right click and under meiantenance tab apply check of Enable circular logging.

Via PowerShell
Set-MailboxDatabase -CircularloggingEnabled:$true

Remember to re-disable it when done.

Set-MailboxDatabase -CircularloggingEnabled:$false

Outlook user not receiving email. Outlook Web Access (OWA) displays ‘A problem occurred while you were trying to use your mailbox’

In our situation, after a mailbox migration from one database to another database, the mailbox was flagged as quarantined by Exchange.  This looks to be a feature added in Exchange 2010 to prevent a single mailbox from taking down the entire information store.

To verify the mailbox is quarantined you can check the registry on the Exchange server.

Get-MailboxStatistics – Identity user | fl IsQuarantined

OR

HKLM\SYSTEM\CCS\Services\MSexchangeIS\Servername\Private-dbguid\Quarantined Mailboxes\ {Mailbox GUID}

 

To get the Mailbox GUID

Get-MailboxStatistics – Identity user | fl

To get the Database GUID

Get-MailboxDatabase -Identity database | fl guid

 

Reset the quarantined mailbox by deleting the quarantine registry key for that mailbox.

The database has to be dismounted and remounted OR the Exchange Information Store service needs to be restarted for the change to take effect immediately.  If the error still exists, the mailbox could crash the store and become quarantined again.

 

Exchange 2010 local move request stuck at queued

I was trying to do a local move request, but the move request was getting stuck at queued, 0%.

In our environment, we are running a production DAG of a database. All the databases were showing a healthy status.

Getting the move request statistics showed nothing:

Get-MoveRequest | Get-MoveRequestStatistics | fl

I ran across an article that said to set the DataMoveReplicationContraint from SecondCopy to None.

Set-MailboxDatabase -Identity databasename -DataMoveReplicationConstraint None

This change requires a restart of the Exchange Replication Manager service on all CAS servers.

After you are complete you need to set the mailbox database DataMoveReplicationConstraint back to SecondCopy.

Set-MailboxDatabase -Identity databasename -DataMoveReplicationConstraint SecondCopy

Couldn’t Connect to the Source Mailbox

Error after entering the New-MailboxExportRequest parameters:

Couldn’t connect to the source mailbox.
+ CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
+ FullyQualifiedErrorId : 4E7EDE9C,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

Exchange 2010 relies of MAPI when performiny any mailbox export. I had to enable MAPI.

MAPI

New-MailboxExportRequest command missing

In order to run the ‘New-MailboxExportRequest’ command, you need to run the following first:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “DOMAIN\USER”

The ‘New-MailboxExportRequest’ command works after restarting the shell.

New-MailboxExportRequest -Mailbox USER -FilePath “\\SERVER\SHARE\USER.pst”

Setting Calendar permission Exchange 2010

To set the sharing permission for you, please refer the steps below,

1), connect to Exchange Online through PowerShell as administrator.

2), run Get-Mailbox to get the mailboxes you want to modify, you can use different filter to pick the user you want to configure, for example, Get-Mailbox -RecipientTypeDetails UserMailbox will return all user mailboxes(no shared mailboxes, room mailboxes and discovery mailbox). For detailed information, you can run Get-Help Get-Mailbox -Detailed | More.

3), prepare a text file, save the following content in 4 lines, you can customize the first line to the filter you want to set,

foreach($user in (Get-Mailbox -RecipientTypeDetails UserMailbox)) {

$cal = $user.alias+”:Calendar”

Add-MailboxFolderPermission -Identity $cal -User your@domain.com -AccessRights Reviewer

}

4), save the text file to d:exopscal.ps1 file, then run d:exopscal.ps1 in PowerShell. All the calendars’ permission in the mailboxes defined in the first line will be changed to full detailed.

Removing is this –

Remove-MailboxFolderPermission -Identity $cal -User your@domain.com