Exchange 2010: -DeleteContent error in Search-Mailbox command

Have you assigned the account running this command the “Mailbox Import Export” role? 😉

New-RoleGroup -Name "Exchange Mailbox Import Export" -Roles "Mailbox Import Export" -Members "<domain\groupname>" -DisplayName ""Exchange Mailbox Import Export" -Description "This group will provide access to mailbox import and export cmdlets within entire Exchange Organization."

Exchange 2010: Search-Mailbox command not recognized

This problem happens because your account is not a member of the “Discovery Management” role. Since your account does not have permission to perform searches, Powershell does not import the Search-Mailbox cmdlet.

Exchange 2010 DAG: database copy PerformDatabaseRead failed with error code 0xFFFFFBA5

  • Stop the Microsoft Exchange Information Store service: net stop MSExchangeIS
  • Run eseutil on problem database: “c:\program files\microsoft\Exchange Server\v14\Bin\eseutil.exe” /mh mailbox.edb >c:\plog.txt
  • If state says “consistent” or “clean shutdown” all rights. But not, fix the problem.
  • In the folder containing your Microsoft Exchange EDB files create a sub folder called temp and move to it ALL FILES that are not .edb or .stm.
  • Start Microsoft Exchange Information Store service: net start MsExchangeIS

Configuring and using display picture in Exchange Server 2010

First run in elevated command prompt:

regsrv32 schmmgmt.dll

Second, import in powershell:

Import-RecipientDataProperty -Identity <Mailbox> -Picture -FileData ([Byte[]]$(Get-Content -path <Picture Path > -Encoding Byte -ReadCount 0))

Eg.:

Import-RecipientDataProperty -Identity test.user -Picture -FileData ([Byte[]]$(Get-Content -path “c:\pics\testuser.jpg” -Encoding Byte -ReadCount 0))

The ThumbnailPhoto attribute (jpg filesize) is limited to 102400 bytes which means 10KB. This limit is defined in the RangeUpper value of the attribute (change with adsiedit, if need…).

Remove orphaned Exchange 2010 server (and database…)

You will have to open ADSIEDIT.MSC from one of your Domain Controllers and then navigate to the Server Name.

Path would be:
Configuration -> Services -> Microsoft Exchange -> { Name of Your Organization } -> Administrative Group -> Exchange Administrative Group -> Servers -> { Your Server Name }

Delete…

Configuration -> Services -> Microsoft Exchange -> { Name of Your Organization } -> Administrative Group -> Exchange Administrative Group ->  Databases -> { Your Database Name }

Delete…

Done, but wait for the sync… (if need).

Increase Maximum Acceptable Message Size in Exchange Server 2010

On Small Business Server 2011 you receive the 210 event ID in the event log and messages are not retrieved from a POP3 account using the pop3 connector.

To Fix:

get-receiveconnector | select identity,maxmessagesize
set-receiveconnector “Windows SBS Fax Sharepoint Receive SERVER″ -maxmessagesize 16MB

In this case the command did nothing as the connector was already at 16Mb. Change all three connectors to your desired levels.