Category Archives: Exchange Server 2010

Error: Failed to clean up the source mailbox after the move.

Problem Warning: Failed to clean up the source mailbox after the move. Erro details: MapiExceptionUnexpectedMailboxState: Unable to delete mailbox. (hr=0x80004005, ec=2634). Resolution #List all disconnected mailboxes in a database and display DisconnectReason if its SoftDeleted or Disabled Get-MailboxStatistics -Database “DB9” | Where-Object {$_.DisconnectDate -Notlike $NULL} | Format-Table DisplayName, DisconnectDate, MailboxGuid, DisconnectReason –Wrap #Remove all SoftDeleted disconnected mailboxes from a Database… Read more »

Create Exchange room groups

      No Comments on Create Exchange room groups

Problem You have a lot of room mailboxes on your Exchange Server 2010 environment and would like to group them in a custom order to allow the users to easier find them in Outlook. Solution You can easily group them by using this Exchange Powershell commands: New-DistributionGroup -Name “My group Name” -Members “Room Name” -RoomList Get-GlobalAddressList | Update-GlobalAddressList

Changing Exchange web paths for new SAN certificates

Problem … Solution Set-OWAVirtualDirectory –Identity „servername\OWA (Default Web Site)“ –InternalUrl https://mail.contoso.com/owa   Set-EcpVirtualDirectory –Identity „servername\ecp (Default Web Site)“ –InternalUrl https://mail.contoso.com/ecp   Set-ActiveSyncVirtualDirectory –Identity „servername\Microsoft-Server-ActiveSync (Default Web Site)“ –InternalUrl https://mail.contoso.com/Microsoft-Server-ActiveSync   Set-OabVirtualDirectory –Identity „servername\OAB (Default Web Site)“ –InternalUrl https://mail.contoso.com/OAB   Set-ClientAccessServer –Identity servername –AutodiscoverServiceInternalUri https://mail.contoso.com/autodiscover/autodiscover.xml   Set-WebServicesVirtualDirectory –Identity „servername\EWS (Default Web Site)“ –InternalUrl https://mail.contoso.com/ews/exchange.asmx

Allow users to change distribution list membership in Outlook

Problem Users might not be able to change Distribution Group memberships in Outlook when using Exchange Server 2010 even if they are manager of the group. Solution Create a new management role in Exchange Server 2010. New-ManagementRole -Name OwnerDistributionGroups -Parent MyDistributionGroups Remove-ManagementRoleEntry OwnerDistributionGroups\New-DistributionGroup -Confirm:$false Remove-ManagementRoleEntry OwnerDistributionGroups\Remove-DistributionGroup -Confirm:$false New-ManagementRoleAssignment -Role OwnerDistributionGroups -Policy “Default Role Assignment Policy” After you have created the… Read more »

Create report with mailboxes sorted by size

Problem Since Exchange Server 2007 you cannot sort mailboxes by size using the Exchange Management Console. To get a mailbox size report, you have to use PowerShell. Solution Use the following PowerShell command to get a HTML report showing all mailboxes sorted by size. Get-Mailbox | Get-MailboxStatistics | Sort-Object TotalItemSize -descending | Select-Object DisplayName,ItemCount,@{Name=”MailboxSize”;exp={$_.totalitemsize}} | ConvertTo-Html | Out-File C:\MailboxReport.htm

Remove internal routing information from e-mails

Problem When sending E-Mail to outside your Exchange organization, the E-Mail eeader will still contain internal routing Information of your organization, which might be a security risk. Solution To remove those internal routing informations, use the following command. Get-SendConnector “Connector” | Remove-ADPermission -AccessRight ExtendedRight -ExtendedRights “MS-Exch-Send-Headers-Routing” -User “NT AUTHORITY\ANONYMOUS LOGON”

Allow relaying on a receive connector

      No Comments on Allow relaying on a receive connector

Problem You want to allow relaying on a Exchange receive connector. Use the following command to allow relaying: Get-ReceiveConnector “Anonymous Relay” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “Ms-Exch-SMTP-Accept-Any-Recipient” This command might not work an a german Installation of Microsoft Exchange Server. The user anonymous logon has another spelling in german. Therefore use the following command: Get-ReceiveConnector “Anonymous Relay” |… Read more »

Exchange 2003/2010 migration

      No Comments on Exchange 2003/2010 migration

Konfiguration Exchange 2003 SMTP Server konfigurieren Auf dem SMTP Server des alten Exchange Servers 2003 muss die „Windows Integrated Authentication“ aktiviert sein, ansonsten kann der neue Exchange keine Emails an den alten Server übertragen. Neues Zertifikat Es muss für den alten Exchange 2003 ein neues SSL Zertifikat erstellt werden, mit dem neuen öffentlichen Namen (z.B. mail2k3.kunde.ch) Public Folder Pfad auch… Read more »

Enable changing expired password in Outlook Web App

Problem To enable users to change their password using Outlook Web App if it’s already expired, you must first enable this option on the Microsoft Exchange Client Access Server (CAS) through the registry. Solution Path: HKLM\System\CurrentControlSet\Services\MSExchange OWA Entry: ChangeExpiredPasswordEnabled (DWORD 32-bit) Value: 1 (Decimal)