Modifier

Partager via


Remove-CsHostingProvider

Removes one or more of the hosting providers currently in use in your organization. A hosting provider is a third-party organization that provides instant messaging, presence and related services for a domain that you would like to federate with. Hosting providers differ from public providers (such as Yahoo!, MSN and AOL) in that their services are not offered to the general public. This cmdlet was introduced in Lync Server 2010.

Syntax

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

Description

Federation is a means by which two organizations can set up a trust relationship that facilitates communication between the two groups. When a federation has been established, users in the two organizations can send each other instant messages, subscribe for presence notifications and otherwise communicate with one another using SIP applications such as Skype for Business. Skype for Business Server allows for three types of federation: 1) direct federation between your organization and another; 2) federation between your organization and a public provider and 3) federation between your organization and a third-party hosting provider.

A hosting provider is an organization which provides SIP communication services for other organizations; for example, Fabrikam, Inc. might host users from Contoso, Northwind Traders and Wingtip Toys. When you establish a federation relationship with a hosting provider, you effectively establish federation with any organization hosted by that provider. For example, if you federate with Fabrikam, your users will be able to exchange instant messages and presence information with users from Contoso, Northwind Traders and Wingtip Toys.

Hosting providers are also used in split domain scenarios. In a split domain scenario, some of your users have accounts hosted on-premises (that is, hosted on your local implementation of Skype for Business Server). Other users have their accounts maintained off-premises by the third-party hosting provider. Federating with the hosting provider enables on-premises and off-premises users to communicate with one another.

In order to federate with a third-party hosting provider, you need to create and enable a new hosting provider. (In addition, the third-party provider will need to create a federation relationship with you.) If you decide later to terminate this relationship, you can use the Remove-CsHostingProvider cmdlet to delete the hosting provider. When you delete a hosting provider, the provider is removed from your list of federated partners; at that point, the only way to re-establish the relationship is to recreate the provider. If you want to temporarily suspend a relationship, use the Disable-CsHostingProvider cmdlet instead. When a hosting provider is disabled, the provider is not deleted from the list of federated partners; instead, the provider is simply marked as disabled and communication between your organization and that provider is disabled. To re-establish the relationship, you can use the Enable-CsHostingProvider cmdlet to re-enable the provider.

Examples

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

Remove-CsHostingProvider -Identity "Fabrikam.com"

The command show in Example 1 deletes the hosting provider with the Identity Fabrikam.com. After the hosting provider has been deleted, federation with Fabrikam.com (and any domains associated with Fabrikam.com) will be terminated.

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

Get-CsHostingProvider | Remove-CsHostingProvider

Example 2 deletes all of the hosting providers configured for use in the organization. To do this, the command first uses the Get-CsHostingProvider cmdlet to return a collection of all the hosting providers currently in use. That collection is then piped to the Remove-CsHostingProvider cmdlet, which deletes each item in the collection. When this command completes there will no longer be any hosting providers configured for use.

-------------------------- Example 3 ------------------------

Get-CsHostingProvider -Filter "*Fabrikam*" | Remove-CsHostingProvider

Example 3 deletes any hosting providers where the string value "Fabrikam" appears somewhere in the provider Identity. To carry out this task, the command first calls the Get-CsHostingProvider cmdlet and the Filter parameter; the filter value "Fabrikam" limits the returned data to any hosting providers that have "Fabrikam" somewhere in the Identity. For example, this command returns such providers as Fabrikam.com, Fabrikam.net and FabrikamUsers.com. The filtered collection is then piped to the Remove-CsHostingProvider cmdlet, which deletes each item in the collection.

-------------------------- Example 4 ------------------------

Get-CsHostingProvider | Where-Object {$_.VerificationLevel -ne "AlwaysVerifiable"} | Remove-CsHostingProvider

In Example 4, all the hosting providers where the verification level is set to anything other than AlwaysVerifiable are deleted. This is done by first calling the Get-CsHostingProvider cmdlet without any additional parameters; that returns a collection of all the hosting providers configured for use in the organization. The resulting collection is then piped to the Where-Object cmdlet, which picks out only those providers where the VerificationLevel property is not equal to AlwaysVerifiable. The filtered collection is then piped to the Remove-CsHostingProvider cmdlet, which removes each provider in that collection.

-------------------------- Example 5 ------------------------

Get-CsHostingProvider | Where-Object {$_.Enabled -eq $False} | Remove-CsHostingProvider

Example 5 removes all the hosting providers that are current disabled. To do this, the command first uses the Get-CsHostingProvider cmdlet to return a collection of all the hosting providers configured for use in the organization. This collection is piped to the Where-Object cmdlet, which picks out only those providers that are disabled; that is, only those providers where the Enabled property is equal to False. The filtered collection is then piped to the Remove-CsHostingProvider cmdlet, which deletes each of the disabled hosting providers.

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 the display of any non-fatal error message that might occur when running the command.

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

Unique identifier for the hosting provider to be removed. The Identity is a string value; the Identity might be the fully qualified domain name (FQDN) of the hosting provider (for example, fabrikam.com) or perhaps the name of the company providing the services (Fabrikam, Inc.).

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.WritableConfig.Settings.Edge.DisplayHostingProvider object. The Remove-CsHostingProvider cmdlet accepts pipelined instances of the hosting provider object.

Outputs

None. Instead, the cmdlet deletes instances of the Microsoft.Rtc.Management.WritableConfig.Settings.Edge.DisplayHostingProvider object.