編輯

共用方式為


Remove-CsTrustedApplicationComputer

Removes a trusted application computer. This cmdlet was introduced in Lync Server 2010.

Syntax

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

Description

It is recommended that the computers that are running trusted applications within a Skype for Business Server 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 Skype for Business Server. In other words, if you call the Get-CsTrustedApplicationComputer cmdlet or the Get-CsComputer cmdlet 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 the Remove-CsTrustedApplicationPool cmdlet).

Examples

-------------------------- 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.

Parameters

-Confirm

Prompts you for confirmation before executing the command.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019

-Force

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019

-Identity

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

Type:XdsGlobalRelativeIdentity
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019

Inputs

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

Outputs

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