Skip Navigation

Remove provisioning of the
BEMS
as a trusted application and trusted application pool

You can use
Windows PowerShell
to remove the provisioning of the
BEMS
as a trusted application software and trusted application pool before you remove the
Connect
service and
Presence
service from the
BEMS
instances in your organization's network.
When you remove provisioning of
BEMS
as a trusted application, the provisioning record is removed from
Microsoft Active Directory
. When the provisioning record is removed from
Microsoft Active Directory
,
BEMS
remains running, but the communication to the
Microsoft Lync Server
stops.
If your environment is running
Skype for Business
, you must remove provisioning of the
BEMS
as a trusted application and trusted application pool using the
Microsoft Lync Server
Management Shell that you used to create it.
  1. Log in to the computer that hosts
    Skype for Business
    using an account with RTCUniversalServerAdmins group rights.
  2. Open a Management Shell window and complete the following steps:
    1. To display the Trusted Application Pool that the computer is a part of, run the following command. Record the Pool name.
      Get-CsTrustedApplicationComputer -Identity <
      FQDN_of_the_bems_host
      >
    2. To display all the computers in the Pool name recorded in step 2a, run the following command. Record if more than one FQDN entry is listed.
      Get-CsTrustedApplicationPool -pool <
      FQDN_of_the_pool_from_step_a
      >
    3. To display additional information about the above Trusted Application Pool, run the following command:
      Get-CsTrustedApplicationPool -PoolFqdn <
      FQDN_of_the_pool_from_step_a
      >
    4. To remove one
      BEMS
      instance from the trusted application pool when you have more than one
      BEMS
      instance in your organization’s environment, run the following command:
      Remove-CsTrustedApplicationComputer -Identity <
      FQDN_of_the_bems_host
      >
    5. To remove all BEMS instances from the Trusted Application Pool and remove the pool itself, run the following command:
      Remove-CsTrustedApplicationPool -Identity <
      FQDN_of_the_pool_from_step_2a
      >
    6. To publish the change to the
      Skype for Business
      environment, run the following command: 
      Enable-CsTopology
    7. To verify that the trusted application pool is removed, run the following command:
      Get-CsTrustedApplicationComputer -Identity <
      FQDN_of_the_bems_host
      >