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

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. In the Windows Management Instrumentation Testerdialog box, click Enum Instances.

  6. In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.

  7. 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

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. In the Windows Management Instrumentation Testerdialog box, click Enum Instances.

  6. In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.

  7. In the Query Resultdialog box, double-click the presence policy instance that you want to edit.

  8. In the Propertiesbox, click the property to update, and then click Edit Property.

  9. In the Property Editordialog box, type a new value in the Valuebox and then click Save Property.

  10. Click Save Objectto save your changes.

To add a new presence policy

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. In the Windows Management Instrumentation Testerdialog box, click Enum Instances.

  6. In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.

  7. In the Query Resultdialog box, click Add.

  8. 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.
  9. Click Save Object.

To delete a presence policy

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. In the Windows Management Instrumentation Testerdialog box, click Enum Instances.

  6. In the Class Infodialog box, type MSFT_SIPGlobalPresencePolicyData, and then click OK.

  7. 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

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. In the Windows Management Instrumentation Testerdialog box, click Enum Instances.

  6. In the Class Infodialog box, type MSFT_SIPGlobalPresenceSetting, and then click OK.

  7. In the Query Resultdialog box, double-click the presence policy.

  8. In the Propertiesbox, click the PresencePolicyproperty, and then click Edit Property.

  9. 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.
  10. 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

  1. 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.

  2. Click Start, click Run, type wbemtest, and then click OK.

  3. In the Windows Management Instrumentation Testerdialog box, click Connect.

  4. In the Connectdialog box, in Namespace, type root\cimv2, and then click Connect.

  5. Click Query.

  6. 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’.
  7. In the Query Resultdialog box, double-click the user instance that you want to edit.

  8. In the Propertiesbox, click PresencePolicyand then click Edit Property.

  9. 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.
  10. Click Save Propertyand then click Save Objectto save your changes.

See Also