Deactivation Best Practices
An application can be deactivated by following the steps in the following procedure.
To deactivate an application
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.
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.
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.
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.
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.
Run the Enable-CsTopology cmdlet to finalize the changes to the topology.
Enable-CsTopology