[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Returns information about the presence policies configured for use in your organization.

Syntax

Get-CsPresencePolicy [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>]
Get-CsPresencePolicy [-Filter <String>] [-LocalStore <SwitchParameter>]

Parameters

Parameter Required Type Description

Identity

Optional

Xds Identity

Unique identifier of the presence policy to be retrieved. To return the global policy, use this syntax: -Identity global. To return a policy configured at the site scope, use syntax similar to this: -Identity "site:Redmond". To return a policy configured at the per-user scope, use syntax like this: -Identity "RedmondPresencePolicy". You cannot use wildcard characters when specifying the Identity.

If neither the –Identity or the –Filter parameters are specified then Get-CsPresencePolicy returns all the presence policies configured for use in the organization.

Filter

Optional

String

Enables you to use wildcards when specifying the policy (or policies) to be returned.

The –Filter and –Identity parameters cannot be used in the same command.

LocalStore

Optional

Switch Parameter

Detailed Description

Presence information (which, among other things, lets you know whether a contact is available to take part in an instant messaging conversation) is invaluable. At the same time, however, there is a cost associated with presence information: the more presence subscriptions you have the more network bandwidth must be devoted to updating presence information. If network bandwidth is a concern, you might want to limit the number of presence subscriptions any one user can have.

The CsPresencePolicy cmdlets enable you to manage two important aspects of presence subscriptions: prompted subscribers and category subscriptions. When you are added to another person’s Microsoft Communicator contact list, the default behavior is for you to receive a pop-up notification informing you that you have been added to that list. Until you dismiss the resulting dialog box, each notification counts as a prompted subscriber. The presence policy’s MaxPromptedSubscriber property enables you to specify the maximum number of unresolved notification dialogs a user can have. (If a user reaches the maximum amount then he or she will not receive new contact notifications, at least not until some of those dialogs have been resolved.)

Category subscriptions represent a request for a specific category of information; for example, an application that requests calendar data. The MaxCategorySubscription property enables administrators to place a limit on the number of category subscriptions a user can have.

Prior to the release of Microsoft Communications Server 2010 prompted subscriber and category subscriptions were managed on a global basis. With the CsPresencePolicy cmdlets you can now manage these presence subscriptions at the global scope, the site scope, or even the per-user scope. This enables you to control bandwidth use while, at the same time, ensuring that users have access to the presence information they need to do their jobs.

The Get-CsPresencePolicy cmdlet provides a way for you to return information about all the presence policies configured for use in your organization.

Return Types

Get-CsPresencePolicy returns instances of the Microsoft.Rtc.Management.WriteableConfig.Policy.Presence.PresencePolicy object.

Examples

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

Copy Code
Get-CsPresencePolicy

The command shown in Example 1 returns information about all the presence policies configured for use in the organization. This is done by calling Get-CsPresencePolicy without any parameters.

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

Copy Code
Get-CsPresencePolicy -Identity "RedmondPresencePolicy"

Example 2 returns a single per-user presence policy: the policy with the Identity RedmondPresencePolicy.

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

Copy Code
Get-CsPresencePolicy -Filter "site:*"

The preceding command returns information about all the presence policies that have been configured at the site scope. To do this, the command uses the –Filter parameter and the filter value "site:*". That filter value limits returned data to all the presence policies that have an Identity that begins with the string value "site:".

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

Copy Code
Get-CsPresencePolicy | Where-Object {$_.MaxPromptedSubscriber -le 100}

In Example 4, information is returned for all the presence policies that limit the maximum number of prompted subscribers to 100 or less. To carry out this task, the command first uses Get-CsPresencePolicy, without any parameters, to return a collection of all the presence policies configured for use in the organization. This collection is then piped to the Where-Object cmdlet, which selects only those policies where the MaxPromptedSubscriber property is less than or equal to (-le) 100.