Remove-CsPublicProvider
Removes a public provider configured for use in your organization. A public provider is an organization that provides instant messaging (IM), presence and related services to the general public. This cmdlet was introduced in Lync Server 2010.
Syntax
Remove-CsPublicProvider
[-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 public provider is an organization which provides SIP communication services for the general public. When you establish a federation relationship with a public provider, you effectively establish federation with any user who has an account hosted by that provider. For example, if you federate with Skype your users will be able to exchange instant messages and presence information with anyone who has a Skype instant messaging account.
In order to federate with a public provider you need to create and enable a new public provider.
(In addition, the public provider will need to create a federation relationship with you.) If you decide later on to terminate this relationship, you can use the Remove-CsPublicProvider
cmdlet to delete the public provider.
When you delete a public provider, the provider is removed from your list of federated partners; at that point, the only way to re-establish the relationship is to re-create the provider.
If you want to temporarily suspend a relationship, use the Disable-CsPublicProvider
cmdlet instead.
When a public 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 suspended.
To re-establish the relationship you can use the Enable-CsPublicProvider
cmdlet to re-enable the provider.
Examples
-------------------------- Example 1 ------------------------
Remove-CsPublicProvider -Identity "Skype"
Example 1 deletes the public provider with the Identity Skype. After this command has completed, Skype will no longer appear in the list of configured public providers; at that point, the only way to re-establish federation with Skype is to re-create the provider.
-------------------------- Example 2 ------------------------
Get-CsPublicProvider | Remove-CsPublicProvider
Example 2 deletes all the public providers configured for use in the organization.
To do this, the command first uses the Get-CsPublicProvider
cmdlet to return a collection of all the public providers currently configured for use.
This collection is then piped to the Remove-CsPublicProvider
cmdlet, which, in turn, deletes each provider in the collection.
-------------------------- Example 3 ------------------------
Get-CsPublicProvider | Where-Object {$_.Enabled -eq $False} | Remove-CsPublicProvider
In Example 3, all the public providers that are currently disabled are removed from the set of configured public providers.
To carry out this task, the command first uses the Get-CsPublicProvider
cmdlet to return a collection of all the public providers currently configured for use.
This collection is piped to the Where-Object
cmdlet, which selects only those providers where the Enabled property is equal to False.
That filtered collection is then piped to the Remove-CsPublicProvider
cmdlet, which deletes all the items in the collection.
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 public provider to be removed. The Identity typically the name of the website providing the services.
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.DisplayPublicProvider object.
The Remove-CsPublicProvider
cmdlet accepts pipelined instances of the public provider object.
Outputs
None. Instead, the cmdlet deletes instances of the Microsoft.Rtc.Management.WritableConfig.Settings.Edge.DisplayPublicProvider object.