Category Archives: Exchange

This mailbox database contains one or more mailboxes

Came across this when trying to uninstall an Exchange server (was the original server in the organisation). I knew there were no mailboxes left in the database indicted in the error message but it seems there are hidden mailboxes.

You need to run through the following commands and make sure you don’t get any results back:

– Get-Mailbox -Database <mailstore name>
– Get-Mailbox -Archive -Database <mailstore name>
– Get-Mailbox -PublicFolder -Database <mailstore name>
– Get-Mailbox -Arbitration -Database <mailstore name>

This last one was my problem. I had to move these mailboxes off to the other server which was a case of simply piping the result and adding a move request to it:

Get-Mailbox -Arbitration -Database <mailstore name> | New-MoveRequest -TargetDatabase <new mailstore name>

Once complete clear up the requests either from the PowerShell command line or within the GUI.

Check Exchange 2010 internal and external URL configuration

A quick list of commands to show the URL configuration, remember use the Exchange PowerShell commands:

Get-ActiveSyncVirtualDirectory | ft server,*lur* -AutoSize
Get-AutodiscoverVirtualDirectory | ft server,*lur* -AutoSize
Get-ClientAccessServer | ft name, *lur* -AutoSize
Get-EcpVirtualDirectory | ft server,*lur* -AutoSize
Get-OabVirtualDirectory | ft server,*lur* -AutoSize
Get-OwaVirtualDirectory | ft server,*lur* -AutoSize
Get-WebServicesVirtualDirectory | ft server,*lur* –AutoSize

The AutoSize parameter allows you to tell PowerShell that you want the formatter to automatically size the table columns, showing as much data as possible.

Searching Exchange 2010 mailboxes with Powershell

If you don’t have access then assign the role to the required user account New-ManagementRoleAssignment -Role “Mailbox Import Export” -User administrator

This will search every mailbox for messages containing the word FINDME in the message body and export them to the administrator mailbox in a subfolder called Results

  • Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery “Body:’*FINDME*’” -TargetMailbox administrator -TargetFolder Results

If you want to search a single mailbox using the body

  • Search-Mailbox -Identity user1 -SearchQuery “Body:’*FINDME*’” -TargetMailbox administrator -TargetFolder inbox

You can also replace the word Body with Subject, From, To etc…

Hotmail Active-sync settings

When POP access to Hotmail isn’t good enough and you don’t want to pay for IMAP access then Actice-sync is the perfect solution. Not only is it free and fast it also has push capability. To set it up use the following info:

  • E-mail: username@hotmail.com
  • Server address: m.hotmail.com
  • SSL enabled
  • Username: username@hotmail.com
  • Password: <your password>
  • Domain: <blank>

I’ve had this working on Windows 6.5, Windows mobile 7  and Android.

Assigning “Send As” Permissions to a user

1. Start Active Directory Users and Computers; click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.

2. On the View menu, make sure that Advanced Features is selected.

3. Double-click the user that you want to grant send as rights for, and then click the Security tab.

4. Click Add, click the user that you want to give send as rights to, and then check send as under allow in the Permissions area.

4.5 Remove all other permissions granted by default so only the send as permission is granted.

5. Click OK to close the dialog box.