Export (0) Print
Expand All
Expand Minimize

New-CsPresenceProvider

Lync Server 2013
 

Topic Last Modified: 2013-03-07

Authorizes a new presence provider for use in the organization. Presence providers represent the PresenceProviders property of a collection of user services configuration settings. This cmdlet was introduced in Lync Server 2013.

New-CsPresenceProvider -Fqdn <String> -Parent <String> <COMMON PARAMETERS>
New-CsPresenceProvider -Identity <XdsIdentity> <COMMON PARAMETERS>
COMMON PARAMETERS: [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-InMemory <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

The command shown in Example 1 creates a new presence provider (with the fully qualified domain name "fabrikam.com") that will be added to the global collection of user services configuration settings.

New-CsPresenceProvider -Parent "global" -Fqdn "fabrikam.com"


Example 2 adds a presence provider with the Fqdn "fabrikam.com" to all the user services configuration collections in the organization. To do this, the command first uses the Get-CsUserServicesConfiguration cmdlet to return a collection of all the user services settings. Those settings are then piped to the ForEach-Object, which takes each item in the collection and a creates a new presence provider for that collection, using "fabrikam.com" as the presence provider Fqdn and the Identity of the user services collection as the presence provider Parent.

Get-CsUserServicesConfiguration | ForEach-Object {New-CsPresenceProvider -Parent $_.Identity -Fqdn "fabrikam.com"}

The CsPresenceProvider cmdlets are used to manage the PresenceProviders property found in the User Services configuration settings. Among other things, these settings are used to maintain presence information, including a collection of authorized presence providers. That collection is stored in the PresenceProviders property. You can use the New-CsPresenceProvider cmdlet to add an authorized presence provider to a collection of User Services configuration settings.

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 command-line interface prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "New-CsPresenceProvider"}

Lync Server Control Panel: The functions carried out by the New-CsPresenceProvider cmdlet are not available in the Lync Server Control Panel.

 

Parameter Required Type Description

Fqdn

Required

System.String

Fully qualified domain name for the presence provider. For example:

-Fqdn "fabrikam.com"

If you use the Fqdn parameter you must also use the Parent parameter. However, the Fqdn parameter cannot be used in the same command as the Identity parameter.

Note that FQDNs must be unique at a given scope.

Identity

Required

Microsoft.Rtc.Management.Xds.XdsIdentity

Unique identifier for the new presence provider. The Identity of a presence provider is composed of two parts: the scope (Parent) where the rule has been applied (for example, service:UserServer:atl-cs-001.litwareinc.com) and the provider's fully qualified domain name. To create a new provider at the global scope use syntax similar to this:

-Identity "global/fabrikam.com"

To create a provider at the site scope, use syntax like this:

-Identity "site:Redmond/fabrikam.com"

To create a provider at the service scope (for the UserServer service only), use syntax similar to this:

-Parent "UserServer:atl-cs-001.litwareinc.com"

You cannot use the Identity parameter in the same command as the Fqdn or the Parent parameter.

Parent

Required

System.String

Scope where the new presence provider will be created. To create a new presence provider at the global scope, use syntax similar to this:

-Parent "global"

To create a new provider at the site scope use syntax like this:

-Parent "site:Redmond"

To create a provider at the service scope (for the UserServer service only), use syntax similar to this:

-Parent "UserServer:atl-cs-001.litwareinc.com"

If you use the Parent parameter you must also include the Fqdn parameter. However, the Parent parameter cannot be used in conjunction with the Identity parameter.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command.

Force

Optional

System.Management.Automation.SwitchParameter

Suppresses the display of any non-fatal error message that might occur when running the command.

InMemory

Optional

System.Management.Automation.SwitchParameter

Creates an object reference without actually committing the object as a permanent change. If you assign the output of this cmdlet called with this parameter to a variable, you can make changes to the properties of the object reference and then commit those changes by calling this cmdlet’s matching Set- cmdlet.

WhatIf

Optional

System.Management.Automation.SwitchParameter

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

None. The New-CsPresenceProvider cmdlet does not accept pipelined input.

The New-CsPresenceProvider cmdlet creates new instances of the Microsoft.Rtc.Management.WritableConfig.Settings.UserServices.PresenceProvider#Decorated object.

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft