Archive for the ‘Exchange 2010’ Category

Your Account has been disabled after reconnect a Disconnected Mailbox in Exchange Server 2010

December 6, 2014 2 comments

Dears when an Exchange 2010 mailbox has been disabled it becomes a disconnected mailbox, may be you need to restore this mailbox and suddenly after restored you get the above message when you try to login through OWA “your account has been disabled”  but the mailbox already enable and to be sure you can list the disconnected mailboxes run the following PowerShell command

Get-MailboxStatistics -Database DBName | Where { $_.DisconnectReason -eq “Disabled” } | Format-List LegacyDN, DisplayName, MailboxGUID, DisconnectReason

Surprise!! Now the mailbox is simply disabledSad smile You have been guided to enable this mailbox by the following PowerShell command,

Enable-Mailbox -Identity UserName

Another Surprise !! you got the following Error message “This task does not support recipients of this type.” Sad smile And after Check the user type by the following PowerShell command

Get-mailbox UserName|Fl Recipient* you got the following results that mean no problem with the user type.

RecipientLimits            : unlimited
RecipientType              : UserMailbox
RecipientTypeDetails : UserMailbox

In this case if you try to export the user mailbox you will get the following error message: “Couldn’t connect to the source mailbox”

5-6-2014 9-53-48 AM

And this message let you make check on the MAPI if enable or not for this user by the following PowerShell command:

Get-CASMailbox -Identity UserName

5-6-2014 9-51-22 AM



And you found the MAPI enabled True that mean no problem by MAPI as the above figure.


At the End you need to say Haaaaaaa7Smile And solution is the following PowerShell Command after run it everything will be working normally SmileSmileSmile

Get-mailboxdatabase | Clean-mailboxdatabase



Categories: Exchange 2010

Removing specific messages from your Exchange Server 2010

November 25, 2013 1 comment

In this article we will go through simple ways and steps for how to removing specific messages from your Exchange Server 2010.

In the business need you may face this case “someone have a permission to send message to all the organization, sent message by mistake to all and we need to know whom received this message and completely remove it from their mailboxes”

In fact we can perform this request by different ways:

  1. You can create transport rule to delete this message in Exchange 2010.
  2. Assigns the Full Access mailbox permission to the MyAdmin account and remove this message manually.
  3. Using EMS “Exchange Management Shell” to know who received this message and remove it from their mailboxes.

First and second ways not recommended for many reasons in addition to the need to know whom received this message as you can not get this info by this ways.

So we will talk about third one.


Make sure the account running the PS command has the appropriate permissions; you need to specifically have access to the New-MailboxImportRequest cmdlet. If you don’t have the correct permissions you will get an error “The term ‘New-MailboxImportRequest’ is not recognized as the name of a cmdlet”.

To add the permission run the following command:

New-ManagementRoleAssignment -Name “Import Export Mailbox Admins” -user “User Account” -Role “Mailbox Import Export”

Change User Account in the above cmdlet to the actual username

Using EMS “Exchange Management Shell” to know who received this message and remove it from their mailboxes.

{First}  If you just need to know who is received the message you can use the following command:

Get-Mailbox -Server ServerName -ResultSize unlimited | Search-Mailbox -Targetfolder “deleted items” -Targetmailbox “Mybackupmailbox” -SearchQuery ‘Received:11/24/2013 AND Subject:”Type Subject Here”‘ -loglevel full

Note: the result of this search will be send to the target mailboxMybackupmailbox” and you can determine mailbox for this reason or you can use your mailbox if you is the administrator and you will get a copy of this message under the target folderdeleted items” and also you can change it to be Inbox for example, also preferred to determine the date of this message that you look-up for, using the subject to determine the message subject and using Loglevel full to get attachment with the result details.


In the previous screen the ResultItemsCount refer to the number of the message founded in this user mailbox and the ResultItemsSize refer to the message size.

 {Second} To remove the message from mailbox server level use the following command:

Get-Mailbox -Server ServerName -ResultSize unlimited | Search-Mailbox -targetfolder “deleted items” -targetmailbox “Mybackupmailbox” -SearchQuery ‘Received:11/24/2013 AND Subject:”Type Subject Here”‘ -loglevel full -DeleteContent -force

Note: Also you can run this command on the Database mailbox level and user level.



In the previous screen you can find the search result with the attached result, the message size and items number that refer to my search matched with three mailboxes only or repeated on the same mailbox.


In the previous screen you can find the copy of message under the deleted items.


Outlook’s "Blocks Sender" functionality and Exchange’s IMF stop working after installing Forefront Protection for Exchange

May 28, 2013 1 comment

Dear friends,

     May you face after installing Forefront Protection for Exchange, Outlook’s “Block Sender” does not work and Exchange’s IMF (Internet Message Filter) functionality fails to work as well.


The cause of that is by default when Forefront’s anti-spam agent deems a piece of mail as non-spam (clean) it sets the SCL rating of that specific message to 1. This has a negative effect on the Outlook “Block Sender” functionality, and Exchange’s IMF, because mail that receives a rating of SCL -1 will be exempt from Outlook’s Block Sender rule as well as Exchange’s IMF functionality.



The workaround is to edit the SCL value that Forefront Protection for Exchange applies to “clean messages”.

The following work around will change the Forefront Protection for Exchange SCL clean value to zero (0). This is done in Forefront’s Power Shell by creating a new extended option:
PS> New-FseExtendedOption –Name CFAllowBlockedSenders –Value true


PS> Get-FseExtendedOption –Name CFAllowBlockedSenders


This should return the following: CFAllowBlockedSenders   True

Now you can test your outlook after blocking someone what happen Smile

Categories: Exchange 2010

Easy way to Export Default Global Address List CSV – Exchange 2010

May 19, 2013 3 comments

First from Actions Pane choose View to customize the results as you need.


Then choose Add/Remove columns to add or remove the columns as you want.



At the end from the action pane choose export and make the file type CSV instead of the default TXT Smile


Categories: Exchange 2010