Tuesday, September 1, 2015

[EX2013] Content Index



    Reseed the content index catalog if the mailbox database is part of a DAG

    • Reseed the content index catalog from any source

    Update-MailboxDatabaseCopy -Identity DB1\MBX1 -CatalogOnly

    • Reseed the content index catalog from a specific source

    Update-MailboxDatabaseCopy -Identity DB1\MBX1 -SourceServer MBX2 -CatalogOnly


    Reseed the content index catalog if there is only one copy of the mailbox database

    • Stop-Service MSExchangeFastSearch
    • Stop-Service HostControllerService
    • Delete, move, or rename the folder that contains the Exchange content index catalog.
    • Start-Service MSExchangeFastSearch
    • Start-Service HostControllerService

    • Get-MailboxDatabaseCopyStatus | FL Name,*Index*

    ** ResetSearchIndex.ps1 **

    Content Index status of all or most of the mailbox databases in the environment shows "Failed"

    1. Create a new Active Directory group that is named "ContentSubmitters" and then grant Admistrators and NetworkService full access to the group. This is a dummy group and should be used as a placeholder only. You might want to add a description so that the group is not removed.
    2. Force or wait for Active Directory replication.
    3. Restart the following services:
      • Microsoft Exchange Search
      • Microsoft Exchange Search Host Controller

[EX2013] Mailbox Move Limits



LIMITS

<Exchange Installation Path>\Program Files\Microsoft\Exchange Server\V14\Bin\MSExchangeMailboxReplication.exe.config

In Exchange 2013 the file has the same name and is located in the same folder, but now in the Mailbox server role.

MaxActiveMovesPerSourceMDB
MaxActiveMovesPerTargetMDB
MaxActiveMovesPerSourceServer
MaxActiveMovesPerTargetServer

[EX2013] Update Disconnected Mailboxes





This example updates the mailbox state for all mailboxes on the mailbox database MDB02.

Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }


This example updates the mailbox state for all disconnected mailboxes on the mailbox database MDB03.

Get-MailboxStatistics -Database MDB03 | Where { $_.DisconnectReason -ne $null } | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }



Update-StoreMailboxState


Remove-StoreMailbox

[EX2013] Simplify the Outlook Web App URL





    1. Start IIS Manager.
    2. Expand the local computer, expand Sites, and then click Default Web Site.
    3. At the bottom of the Default Web Site Home pane, click Features View if this option isn't already selected.
    4. In the IIS section, double-click HTTP Redirect.
    5. Select the Redirect requests to this destination check box.
    6. Type the absolute path of the /owa virtual directory. For example, type https://mail.contoso.com/owa.
    7. Under Redirect Behavior, select the Only redirect requests to content in this directory (not subdirectories) check box.
    8. In the Status code list, click Found (302).
    9. In the Actions pane, click Apply.
    10. Click Default Web Site.
    11. In the Default Web Site Home pane, double-click SSL Settings.
    12. In SSL Settings, clear Require SSL.

    Note
    Note:
    If you don’t clear Require SSL, users won’t be redirected when they enter an unsecured URL. Instead, they’ll get an access denied error.

    1. For the new settings to take effect, open a Command Prompt window, and then type iisreset /noforce to restart IIS.

[EX2013] Database is mandatory on Arbitration Mailboxes




    1. Remove the FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 e-mail account by using the ADSIEDIT tool. To do this, follow these steps:
      1. Click Start, click Run, type adsiedit.msc, and then click OK.
      2. Locate the Default Naming Context node, and then locate to the CN=Users container.
      3. Locate and then right-click the CN=FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 container. Then, clickDelete.
      1. Rerun the Exchange Server 2010 Mailbox role setup application.
      2. Create a new federated e-mail account by using the following command:
        New-Mailbox -Arbitration -Name FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 -UserPrincipalName FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042@<Default_Accepted_Domain>



    setup /PrepareAD [/OrganizationName:]
    Enable-Mailbox -Arbitration -DomainController  -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"


    Set-Mailbox “SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}” -Arbitration -Database “YourDatabaseNameHere”


[EX2013] Unattended installation




The following are examples of using Setup.exe:

  • Setup.exe /mode:Install /role:ClientAccess,Mailbox /OrganizationName:MyOrg /IAcceptExchangeServerLicenseTerms
    This command creates an Exchange 2013 organization in Active Directory called MyOrg, installs the Client Access server role, Mailbox server role, and the management tools and also accepts the Exchange 2013 licensing terms.

  • Setup.exe /mode:Install /role:ClientAccess,Mailbox /TargetDir:"C:\Exchange Server" /IAcceptExchangeServerLicenseTerms
    This command installs the Client Access server role, the Mailbox server role, and the management tools to the "C:\Exchange Server" directory. This command assumes an Exchange 2013 organization has already been prepared.

  • Setup.exe /mode:Install /r:CA,MB /IAcceptExchangeServerLicenseTerms
    This command installs the Client Access server role, the Mailbox server role, and the management tools to the default installation location.

  • Setup.exe /mode:Install /r:EdgeTransport /IAcceptExchangeServerLicenseTerms
    This command installs the Edge Transport server role and the management tools to the default installation location.

  • Setup.exe /mode:Install /r:ET /IAcceptExchangeServerLicenseTerms
    This command installs the Edge Transport server role and the management tools to the default installation location.

  • Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms
    This command completely removes Exchange 2013 from the server and removes this server's Exchange configuration from Active Directory.

  • Setup.exe /PrepareAD /on:"My Org" /IAcceptExchangeServerLicenseTerms
    This command creates an Exchange organization called My Org and prepares Active Directory for Exchange 2013.

  • C:\ExchangeServer\bin\Setup.exe /m:Install /r:ClientAccess /SourceDir:d:\amd64 /IAcceptExchangeServerLicenseTerms
    This command adds the Client Access server role to an existing Exchange 2013 server using D:\amd64 as the source directory.

  • Setup.exe /role:ClientAccess,Mailbox /UpdatesDir:"C:\ExchangeServer\New Patches" /IAcceptExchangeServerLicenseTerms
    This command updates ExchangeServer.msi with patches from the specified directory, and then installs the Client Access server role, Mailbox server role, and the management tools. If a language pack bundle is included in this directory, the language pack is also installed.

  • Setup.exe /mode:Install /role:ClientAccess,Mailbox /DomainController:DC01 /IAcceptExchangeServerLicenseTerms
    This command uses the domain controller DC01 to query and make changes to Active Directory while installing the Client Access server role, Mailbox server role, and the management tools.

  • Setup.exe /mode:Install /role:ClientAccess /AnswerFile:c:\ExchangeConfig.txt /IAcceptExchangeServerLicenseTerms
    This command installs the Client Access server role by using the settings in the ExchangeConfig.txt file.

  • Setup.exe /rprs:Exchange03 /IAcceptExchangeServerLicenseTerms
    This command removes the object Exchange03 from Active Directory.

  • Setup.exe /AddUmLanguagePack:ko-KR /IAcceptExchangeServerLicenseTerms
    This command installs the Korean Unified Messaging language pack from the %ExchangeSourceDir%\ServerRoles\UnifiedMessaging directory.

[EX2013] Virtual Directories





Default website
Anonymous
Required
      
aspnet_client
Anonymous authentication
SSL required
Requires 128-bit encryption
      
Autodiscover
Anonymous authentication
Basic authentication
Windows authentication
SSL required
Requires 128-bit encryption
      
ecp
Anonymous authentication
Basic authentication
SSL required
Requires 128-bit encryption
      
EWS
Anonymous authentication
Windows authentication
SSL required
Requires 128-bit encryption
      
Microsoft-Server-ActiveSync
Basic authentication
SSL required
Requires 128-bit encryption
      
OAB
Windows authentication
Not required

owa
Basic authentication
SSL required
Requires 128-bit encryption

PowerShell
Anonymous authentication
Not required

Rpc
Basic authentication
Windows authentication
SSL required
Requires 128-bit encryption

RpcWithCert
By default, all authentication methods are disabled.
Required