Sdílet prostřednictvím


Configure UM to work with Lync Server in Exchange Server

Applies to: Exchange Server 2013, Exchange Server 2016

When you're integrating Microsoft Lync Server with Exchange Unified Messaging (UM), you have to run the ExchUcUtil.ps1 script in the Shell. The ExchUcUtil.ps1 script does the following:

  • Creates a UM IP gateway for each Lync Server pool.

    Important

    The ExchUcUtil.ps1 script creates one or more UM IP gateways. You must disable outgoing calls on all UM IP gateways except one gateway that the script created. This includes disabling outgoing calls on UM IP gateways that were created before you ran the script. To disable outgoing calls on a UM IP gateway, see Disable outgoing calls on UM IP gateways in Exchange Server.

  • Creates a UM hunt group for each UM IP gateway. The pilot identifier of each hunt group specifies the UM SIP URI dial plan used by the Lync Server Front End pool or Standard Edition server that's associated with the UM IP gateway.

  • Grants Lync Server permission to read Active Directory UM container objects such as UM dial plans, auto attendants, UM IP gateways, and UM hunt groups.

Important

Each UM forest must be configured to trust the forest in which Lync Server 2013 is deployed, and the forest in which Lync Server 2013 is deployed must be configured to trust each UM forest. If Exchange UM is installed in multiple forests, the Exchange Server integration steps must be performed for each UM forest or you'll have to specify the Lync Server domain. For example, ExchUcUtil.ps1 -Forest <lync-domain-controller-fqdn>.

For additional management tasks related to integrating Lync Server and Unified Messaging, see Deploying Exchange 2013 UM and Lync Server overview.

What do you need to know before you begin?

Tip

Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server.

Use the Shell to run the ExchUcUtil.ps1 script

Run the ExchUcUtil.ps1 script on any Exchange server in your organization that's in the same topology as Microsoft Lync Server. You can run the script from a Mailbox server using the Shell or you can run the script using Remote Windows PowerShell on a Client Access server. If you run the script on a Client Access server in your organization, the Client Access server will proxy the Remote Windows PowerShell session to a Mailbox server in the organization.

Important

The ExchUcUtil.ps1 script creates one or more UM IP gateways. You must disable outgoing calls on all UM IP gateways except one gateway that the script created. This includes disabling outgoing calls on UM IP gateways that were created before you ran the script. To disable outgoing calls on a UM IP gateway, see Disable outgoing calls on UM IP gateways in Exchange Server.

You must have the permissions of the Exchange Organization Management role or be a member of the Exchange Organization Administrators security group to run the script.

  1. Open the Exchange Management Shell.

  2. Run the following commands:

    cd $env:ExchangeInstallPath\Scripts
    
    .\ExchUcUtil.ps1
    

How do you know this worked?

To verify that the ExchUcUtul.ps1 script completed successfully, do the following:

  • Use the Get-UMIPGateway cmdlet or the EAC to view the new UM IP gateway or gateways that were created.
  • Use the Get-UMHuntGroup cmdlet or the EAC to view the new UM hunt group or groups that were created.