Installing Exchange 2013

By | May 28, 2014


  1. Contact ISP and setup a Reverse DNS Record on public IP if not reusing existing.
  2. First, decommission and uninstall all Exchange servers older than 2007.
  3. Add the Feature: Media Foundation: Install-WindowsFeature Server-Media-Foundation
  4. Next load the following components: Unified Communications Managed API 4.0 Runtime, Filter Pack 2010 x64, Filter Pack 2010 SP1 x64
  5. Run the install package that includes the current service pack.  Do NOT install it to the C Drive. The remaining Features and Roles with be installed automatically.
  6. Run Windows Updates


Access the ECP at https://server.domain/ecp/?ExchClientVer=15

  1. Increase the database limits to unlimited to ensure you will be able to import existing accounts.
  2. Rename the databases and create additional to separate databases based on Co. structure. If needed create databases for heavily utilized staff or service accounts. Move all databases off of the C Drive (Log Files can be left on C with adequate capacity). Database path name should be as follows e.g. Database Name “Management”; New Database Path “D:\Exchange\Management\Managment.edb”; New Log Path e.g. “D:\Logs\Management\”
  3. Install SSL certificate to IIS 7-8, bind to 443 for exchange site then update server URL (see commands)
  4. Update DNS to fix Outlook security warnings. The SRV record should be created in the DNS zone that matches the user’s SMTP domain. The SRV record should have the following properties:
    Service: _autodiscover
    Protocol: _tcp
    Port: 443
    Host: URL for redirection. This URL may be the Outlook Web Access (OWA) URL because the resolved IP should be the same as the Autodiscover service.  e.g.
    For details:
  5. Migrate Administrator@ email to a non-admin account named “Administrator Email” to allow ActiveSync access. Administrator CANNOT use Active Sync
  6. Open 443 and 25 outbound on the router and test Webmail and ActiveSync from outside with new Admin account.
  7. Verify log files are off C drive and that enough capacity exists (they grow to size of data transferred)
  8. Add Internal Receive Connectors on new and old Servers that accepts only from single internal server IP
  9. You are now ready to create or transfer mailboxes (Always create user in AD 1st to copy security for share access
  10. Install Spam filter or redirect existing and point
  11. Update External DNS, MX and SPF records
  12. Test and Verify
  13. Migrate Public Folders

To allow ActiveSync on both servers:

  1. Each Server will need a public IP on port 443
  2. Point the external OWA URI to the new server (Only new server can route requests)
  3. Add a new URI that points to the old server
  4. Do not change internal DNS
  5. On the old server Run:
Set-OwaVirtualDirectory -Identity "CAS_Server_Name\OWA (Default Web Site)" -ExternalURL "" -InternalURL $NULL
  • Move database and Logs:
Move-DatabasePath -Identity "[Databasename]" -EdbFilePath "D:\[NewLocation]\[databasefile].edb" –LogFolderpath “D:\[Newlocation]"
  • View Database and Log Paths:
Get-MailboxDatabase “[DatabaseName]” | FL Name,Path
  • Get Mail Stats:
Get-MailboxStatistics "[username]" | ft DisplayName, TotalItemSize, ItemCount, Database
  • Move Mailbox:
New-MoveRequest -TargetDatabase "[Database name]" -ArchiveTargetDatabase archives -BadItemLimit 100 -LargeItemLimit 100 -AcceptLargeDataLoss
  • Mailbox Move Status: 
Get-moverequest -MoveStatus InProgress -TargetDatabase "[DatabaseName]" | get-moverequeststatistics|select DisplayName,PercentComplete,TotalMailboxSize
  • Suspend Move:
Suspend-MoveRequest -Identity "User Name"
  • Update server URLs to match SSL:
Set-ClientAccessServer -Identity "[Server]" -AutodiscoverServiceInternalUri "https://[FQDN]/autodiscover/autodiscover.xml";
Set-WebServicesVirtualDirectory -Identity "[Server]\EWS (Default Web Site)" -InternalUrl "https://[FQDN]/ews/exchange.asmx";
Set-OABVirtualDirectory -Identity "[Server]\oab (Default Web Site)" -InternalUrl "https://[FQDN]/oab";
Set-ClientAccessServer -Identity "[Server]" –AutodiscoverServiceInternalUri "https://[FQDN]/autodiscover/autodiscover.xml"