Category Archives: Exchange Server 2007

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

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 2007 CCR cluster stuck at initializing

Problem While moving the active cluster node in a Exchange Server 2007 CCR cluster, it may happen that the storage group copy status gets stuck at “initalizing”. Check the exact state using the following PowerShell command. Get-StorageGroupCopyStatus Solution This error may be resolved by dismounting and mounting the database. To dismount all the databases on a Exchange Server, use the… Read more »