Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Configuring Presence Policies Using WBEMTest

Communications Server 2007 R2

Topic Last Modified: 2009-03-04

A presence policy is a set of limits and restrictions that affect presence. By default, the Default Policy and Service: Medium presence 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.

Dd572387.important(en-us,office.13).gifImportant:
We recommend that you not modify the settings on the Default Policy and Service: Medium presence policies.

For details about presence policy settings, see Presence Policy Settings.

  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 Tester dialog box, click Connect.

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

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

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

  7. In the Query Result dialog box, double-click a presence policy instance to see the properties associated with that 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 Tester dialog box, click Connect.

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

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

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

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

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

  9. In the Property Editor dialog box, type a new value in the Value box and then click Save Property.

  10. Click Save Object to save your changes.

  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 Tester dialog box, click Connect.

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

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

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

  7. In the Query Result dialog box, click Add.

  8. Modify the CategorySubscriptions, DefaultPolicy, Name, PromptedSubscribers, and Type properties.

    Dd572387.note(en-us,office.13).gifNote:
    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.

  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 Tester dialog box, click Connect.

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

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

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

  7. In the Query Result dialog 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 Policy presence policy is assigned as the 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 Tester dialog box, click Connect.

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

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

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

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

  8. In the Properties box, click the PresencePolicy property, and then click Edit Property.

  9. In the Property Editor dialog box, type the distinguished name (DN) of the presence policy in the Value box and then click Save Property.

    Dd572387.note(en-us,office.13).gifNote:
    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 Editor dialog box, under Update type, click Update only and then click Save Object to 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.

  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 Tester dialog box, click Connect.

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

  5. Click Query.

  6. In the Query dialog box, type the query string to select the user and then click Apply.

    Dd572387.note(en-us,office.13).gifNote:
    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 Result dialog box, double-click the user instance that you want to edit.

  8. In the Properties box, click PresencePolicy and then click Edit Property.

  9. In the Property Editor dialog box, type the DN of the presence policy in the Value box.

    Dd572387.note(en-us,office.13).gifNote:
    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 Property and then click Save Object to save your changes.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.