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

Retrieves one or more hosted Exchange Unified Messaging (UM) contact objects.

Syntax

Get-CsExUmContact [-Identity <UserIdParameter>] [-Credential <PSCredential>] [-DomainController <Fqdn>] [-Filter <String>] [-LdapFilter <String>] [-OU <OUIdParameter>] [-ResultSize <Unlimited>]

Parameters

Parameter Required Type Description

Identity

Optional

UserIdParameter

The unique identifier of the contact object you want to retrieve. Contact identities can be specified using one of four formats: 1) the contact's SIP address; 2) the contact's user principal name (UPN); 3) the contact's domain name and logon name, in the form domain\logon (for example, litwareinc\exum1); and, 4) the contact's Active Directory display name (for example, Team Auto Attendant).

Full data type: Microsoft.Rtc.Management.AD.UserIdParameter

Filter

Optional

String

Enables you to limit the returned data by filtering on Communications Server-specific attributes. For example, you can limit returned data to contacts that have line URIs beginning with "tel:555".

The Filter parameter uses a subset of the Windows PowerShell filtering syntax used by the Where-Object cmdlet. For example, a filter that returns only contacts who have been enabled for Microsoft Unified Communications would look like this: {EnterpriseVoiceEnabled -eq $True}, with EnterpriseVoiceEnabled representing the Active Directory attribute; -eq representing the comparison operator (equal to); and $True (a built-in Windows PowerShell variable) representing the filter value.

LdapFilter

Optional

String

Enables you to limit the returned data by filtering "generic" Active Directory attributes (that is, attributes that are not specific to Communications Server).

The LDAPFilter parameter uses LDAP query language when creating filters.

OU

Optional

OUIdParameter

Enables you to limit the retrieved information from a specific Active Directory organizational unit (OU). Note that this returns data from the specified OU and any child OUs.

When specifying an OU, use the distinguished name of that container; for example, OU=ExUmContacts,dc=litwareinc,dc=com.

DomainController

Optional

Fqdn

Enables you to connect to the specified domain controller in order to retrieve contact information. To connect to a particular domain controller, include the DomainController parameter followed by the computer name (for example, atl-mcs-001) or its fully qualified domain name (for example, atl-mcs-001.litwareinc.com).

Full data type: Microsoft.Rtc.Management.Deploy.Fqdn

Credential

Optional

PSCredential

Enables you to run the cmdlet under alternate credentials; this might be required if the account you used to log on to Windows does not have the necessary privileges required to work with contact objects.

To use the Credential parameter, you must first create a PSCredential object by using the Get-Credential cmdlet.

ResultSize

Optional

Integer

Enables you to limit the number of records returned by a command. For example, to return just seven contacts (regardless of how many contacts are in your forest) simply include the ResultSize parameter and set the parameter value to 7. Note that there is no way to guarantee which seven contacts will be returned. If you set the ResultSize to 7 but you have only three contacts in your forest, the command will return those three contacts, and then complete without error.

The result size can be set to any whole number between 0 and 2147483647, inclusive. If set to 0 the command will run, but no data will be returned.

Full data type: Microsoft.Rtc.Management.ADConnect.Core.Unlimited

Detailed Description

Microsoft Communications Server 2010 works with Exchange UM to provide several voice-related capabilities, including Auto Attendant and Subscriber Access. When Exchange UM is provided as a hosted service (rather than on premises), contact objects must be created using PowerShell to apply the Auto Attendant and Subscriber Access functionality. This cmdlet retrieves one or more of these contacts.

Return Types

Returns an object of type Microsoft.Rtc.Management.ADConnect.Schema.OCSADExUmContact.

Examples

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

Copy Code
Get-CsExUmContact

This example retrieves all Exchange UM contacts defined within a Communications Server deployment.

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

Copy Code
Get-CsExUmContact -Identity sip:exum1@fabrikam.com

This example retrieves the Exchange UM contact with the SIP address sip:exum1@fabrikam.com

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

Copy Code
Get-CsExUmContact -Filter {UCEnabled -eq $False}

In this example, we use the Filter parameter to retrieve all Exchange UM contacts that are not enabled for Unified Communications. We do this by filtering on the UCEnabled property to see if the value of this property is equal to (-eq) False ($False). Contacts returned by this command will not function.

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

Copy Code
Get-CsExUmContact -Filter {LineURI -like "tel:555*"}

This command filters on the LineURI property to retrieve all Exchange UM contacts with a LineURI beginning with tel:555. In other words, it retrieves all contacts with a phone number that begins with 555.

-------------------------- Example 5 --------------------------

Copy Code
Get-CsExUmContact -OU "OU=ExUmContacts,DC=Vdomain,DC=com"

The command in this example uses the OU parameter to retrieve all Exchange UM contacts that are in the Active Directory OU OU=ExUmContacts,DC=Vdomain,DC=com.