Share via


Remove-CsTrustedApplicationComputer

 

Topic Last Modified: 2012-03-26

Removes a trusted application computer.

Syntax

Remove-CsTrustedApplicationComputer -Identity <XdsGlobalRelativeIdentity> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

Detailed Description

It is recommended that the computers that are running trusted applications within a Microsoft Lync Server 2010 deployment be added to a separate pool that is only for trusted applications. However, you can add trusted application computers to an existing pool that is also used for other purposes. Use this cmdlet to remove a trusted application computer.

When you use this cmdlet to remove a trusted application computer, it will be removed not only from the list of trusted application computers but from the list of computers available on Lync Server 2010. In other words, if you call Get-CsTrustedApplicationComputer or Get-CsComputer the computer will no longer be listed. You cannot remove a trusted application computer if it’s the only computer on the pool. If you want to remove the only computer on a pool you must remove the entire pool (which can be done by calling Remove-CsTrustedApplicationPool).

Who can run this cmdlet: By default, members of the following groups are authorized to run the Remove-CsTrustedApplicationComputer cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Remove-CsTrustedApplicationComputer"}

Parameters

Parameter Required Type Description

Identity

Required

XdsGlobalRelativeIdentity

The fully qualified domain name (FQDN) of the computer to remove.

Force

Optional

SwitchParameter

Suppresses any confirmation prompts that would otherwise be displayed before making changes.

WhatIf

Optional

SwitchParameter

Describes what would happen if you executed the command without actually executing the command.

Confirm

Optional

SwitchParameter

Prompts you for confirmation before executing the command.

Input Types

Microsoft.Rtc.Management.Xds.DisplayComputer object. Accepts pipelined input of trusted application computer objects.

Return Types

This cmdlet does not return a value. It removes an object of type Microsoft.Rtc.Management.Xds.DisplayComputer.

Example

-------------------------- Example 1 ------------------------

Remove-CsTrustedApplicationComputer -Identity Trust1.litwareinc.com

This example removes the computer with the FQDN Trust1.litwareinc.com.

-------------------------- Example 2 ------------------------

Get-CsTrustedApplicationComputer -Filter Trust* | Remove-CsTrustedApplicationComputer

This example removes all trusted computers that have FQDNs beginning with the string Trust. The example begins by calling the Get-CsTrustedApplicationComputer cmdlet, passing the Filter parameter the value Trust*. This will retrieve all trusted application computers with an FQDN beginning with Trust and ending with any set of characters. That collection of computers is then piped to the Remove-CsTrustedApplicationComputer cmdlet, which removes each item (each computer) in the collection. Keep in mind that this won’t remove the computers from a pool if removing those computers would result in an empty pool.