A presence policy is a set of limits and restrictions that affect presence. By default, the Default Policyand Service: Mediumpresence policies are installed when you deploy Office Communications Server 2007 R2. You can also create additional presence policies and modify the settings of an existing presence policy. You can use Windows Management Instrumentation Tester (wbemtest) to modify presence policies.
Important: |
---|
We recommend that you not modify the settings on the Default Policyand Service: Mediumpresence policies. |
For details about presence policy settings, see Presence Policy Settings.
To view all presence policies
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
In the Windows Management Instrumentation Testerdialog box, click Enum Instances.
-
In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.
-
In the Query Resultdialog box, double-click a presence policy instance to see the properties associated with that policy.
To update a presence policy property
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
In the Windows Management Instrumentation Testerdialog box, click Enum Instances.
-
In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.
-
In the Query Resultdialog box, double-click the presence policy instance that you want to edit.
-
In the Propertiesbox, click the property to update, and then click Edit Property.
-
In the Property Editordialog box, type a new value in the Valuebox and then click Save Property.
-
Click Save Objectto save your changes.
To add a new presence policy
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
In the Windows Management Instrumentation Testerdialog box, click Enum Instances.
-
In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.
-
In the Query Resultdialog box, click Add.
-
Modify the CategorySubscriptions, DefaultPolicy, Name, PromptedSubscribers, and Type properties.
Note: The Type property must be set to presence. The DefaultPolicy property is a Boolean value that indicates whether this presence policy is the global default policy that is assigned to all objects. For details about the CategorySubscriptions and PromptedSubscribers settings, see Presence Policy Settings. -
Click Save Object.
To delete a presence policy
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
In the Windows Management Instrumentation Testerdialog box, click Enum Instances.
-
In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.
-
In the Query Resultdialog box, click the presence policy to delete, and then click Delete.
The global policy is the presence policy that is assigned to all objects by default. When you deploy Office Communications Server 2007 R2, the Default Policypresence policy is assigned as the global policy.
To update the assigned global policy
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
In the Windows Management Instrumentation Testerdialog box, click Enum Instances.
-
In the Class Infodialog box, type MSFT_SIPGlobalPresenceSetting, and then click OK.
-
In the Query Resultdialog box, double-click the presence policy.
-
In the Propertiesbox, click the PresencePolicyproperty, and then click Edit Property.
-
In the Property Editordialog box, type the distinguished name (DN) of the presence policy in the Valuebox and then click Save Property.
Note: To find the DN of the presence policy, follow the steps described in To view all presence policies. The DN is stored in the PolicyDN property. -
In the Object Editordialog box, under Update type, click Update onlyand then click Save Objectto save your changes.
If you have user to whom you do not want to assign the global default policy, you can assign a different policy to that individual user.
To assign a per-user policy
-
On a computer where Office Communications Server 2007 R2 or the Office Communications Server 2007 R2 administrative tools are installed, log on as a member of the RTCUniversalServerAdmins group.
-
Click Start, click Run, type wbemtest, and then click OK.
-
In the Windows Management Instrumentation Testerdialog box, click Connect.
-
In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.
-
Click Query.
-
In the Querydialog box, type the query string to select the user and then click Apply.
Note: The following example selects the user object with the specified URI: select * from MSFT_SIPESUserSetting where PrimaryUri=’sip:user1@contoso.com’
. -
In the Query Resultdialog box, double-click the user instance that you want to edit.
-
In the Propertiesbox, click PresencePolicyand then click Edit Property.
-
In the Property Editordialog box, type the DN of the presence policy in the Valuebox.
Note: To find the DN of the presence policy, follow the steps described in To view all presence policies. The DN is stored in the PolicyDN property. -
Click Save Propertyand then click Save Objectto save your changes.