MSFT_SIPGlobalPresenceSetting (New)
Specifies the globally enforced presence policy. A presence policy is a set of presence limits and restrictions that are applied to user or contact objects. The global presence policy is applied to all users when UsePerUserPresencePolicy is set to False. The global presence policy is configured on a forest-wide basis.
The MSFT_SIPGlobalPresenceSetting properties do not map to the Administration Tool.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class MSFT_SIPGlobalPresenceSetting
{
[key] string InstanceID;
string PresencePolicy;
boolean UsePerUserPresencePolicy;
};
Methods
This class does not define any methods.
Properties
The MSFT_SIPGlobalPresenceSetting class has the following properties.
Remarks
This class gets and sets information at the following levels: Active Directory.
Only one instance of this class can be present in the forest.
Instances of this class support the following interface methods:
Provider::EnumerateInstances();
Provider::GetObject();
Provider::PutInstance();
Where PutInstance() supports the following flag:
WBEM_FLAG_UPDATE_ONLY
Scripting
You can use code similar to the following to bind to the MSFT_SIPGlobalPresenceSetting class. In the two examples, the dot (.) represents the local computer. To bind to a remote computer, replace the dot with the name of that computer (e.g., atl-ocs-001).
VBScript
strComputer = "."
wmiQuery = "Select * From MSFT_SIPGlobalPresenceSetting"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery(wmiQuery)
Windows Powershell
$colItems = Get-WMIObject MSFT_SIPGlobalPolicySetting –computer "."
Requirements
Server: Installed on computers serving the following roles: Administrative Tools Server, Audio/Video Conferencing Server, Front End Server, Proxy Server, and Web Components Server.
Namespace: Defined in \root\cimv2.