Deactivation Best Practices

An application can be deactivated by following the steps in the following procedure.

To deactivate an application

  1. Running as a Lync Server Administrator, launch Lync Server Management Shell.

    On the Start menu, select All Programs, select Microsoft Lync Server 2010, and then click Lync Server Management Shell.

  2. Remove the Active Directory contacts and ApplicationEndpoint instances that you no longer need by running following PowerShell cmdlet.

    Remove-CsTrustedApplicationEndpoint -Identity sip:ExternalApp@mydomain.com

    Note

    Use the appropriate identity for your ApplicationEndpoint instance.

  3. Remove the application service port entries that you no longer need by running the following PowerShell cmdlet.

    Remove-CSTrustedApplication -Identity "TrustedApps.contoso.com/urn:application:ucmasampleapplication"

    Note

    This cmdlet also cleans up any contact objects or ApplicationEndpoint instances tied to the application.

  4. If the computer hosting your application from your topology is no longer needed in the topology, remove it using the following PowerShell cmdlet.

    Remove-CsTrustedApplicationComputer -identity "MyAppBox.contoso.com"

    Note

    Use the appropriate identity for the computer being removed.

  5. If the trusted application pool is no longer needed, remove it using the following PowerShell cmdlet.

    Remove-CsTrustedApplicationPool -identity "MyAppPool.contoso.com"

    Note

    Use the appropriate identity for your pool.

    Note

    This cmdlet also cleans up any contact objects or ApplicationEndpoint instances tied to the pool.

  6. Run the Enable-CsTopology cmdlet to finalize the changes to the topology.

    Enable-CsTopology

See Also

Concepts

Activating a UCMA 3.0 Core Trusted Application