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

Modifies the property values of a common area phone managed by Microsoft Communications Server 2010. Common area phones are phones that are located in building lobbies, employee lounges, or other areas where they are likely to be used by a number of different people, and for a number of different users.

Syntax

add-attachmentfilterentry -Name <String> -Type <ContentType | FileName> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Identity

Required

User ID parameter

Unique identifier for the common area phone. Common area phones are identified using the Active Directory distinguished name of the associated contact object. Common area phones, by default, use a GUID (globally unique identifier) as their common name; that means phones will typically have an Identity similar to this: CN={ce84964a-c4da-4622-ad34-c54ff3ed361f},OU=Redmond,DC=Litwareinc,DC=com. Because of that you might find it easier to retrieve common area phones by using the Get-CsCommonAreaPhone cmdlet, then piping the returned objects to Set-CsCommonAreaPhone.

Note. By using the –DN parameter when calling New-CsCommonAreaPhone, administrators can give common area phones a more user-friendly common name (e.g., Building 14 Lobby as opposed to {ce84964a-c4da-4622-ad34-c54ff3ed361f}).

Description

Optional

String

Enables you to modify the Active Directory description attribute for the common area phone. This provides a way to supply additional information about the phone; for example, you might provide details about who to contact in case of problems with the phone.

DisplayName

Optional

String

Enables you to modify the Active Directory display name of the common area phone.

DisplayNumber

Optional

String

Phone number as displayed in Microsoft Communicator. The DisplayNumber property can be formatted any way you prefer; for example 1-800-555-1234; 1-(800)-555-1234; 1.800.555.1234; etc.

DomainController

Optional

String

Enables you to connect to the specified domain controller in order to modify 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).

EnterpriseVoiceEnabled

Optional

Boolean

Indicates whether the contact object for the common area phone has been enabled for Enterprise Voice, Microsoft’s implementation of Voice over Internet Protocol (VoIP). With Enterprise Voice, telephone calls can be made using the Internet rather than using the standard telephone network.

LineUri

Optional

String

Phone number for the common area phone. The line URI should be specified using the E.164 format, and be prefixed by the "TEL:" prefix. For example: TEL:+14255551297. Any extension number should be added to the end of the line URI; for example: TEL:+14255551297; ext=51297.

SipAddress

Optional

SIP address

Unique identifier that allows the common area phone to communicate with SIP devices such as Microsoft Communicator. The SIP address must be prefaced by the prefix "sip:". For example: sip:bldg14lobby@litwareinc.com.

CsEnabled

Optional

String

Indicates whether or not the contact object for the common area phone has been enabled for Microsoft Communications Server.

If you disable a contact by using the -CSEnabled parameter, the information associated with that account (including assigned policies and whether or not the contact is enabled for Enterprise Voice, remote call control, and/or voice mail integration) is retained. If you later re-enable the account using the -CSEnabled parameter, the associated account information will be restored.

PassThru

Optional

Switch Parameter

Returns an object representing the common area phone.

WhatIf

Optional

Switch Parameter

Describes what would happen if you executed the command without actually executing the command.

Confirm

Optional

Switch Parameter

Prompts you for confirmation before executing the command.

Detailed Description

Common area phones are IP telephones that are not associated with an individual user; instead of being located in someone’s office, common area phones are typically located in building lobbies, cafeterias, employee lounges, meeting rooms and other locations where a large number of people are likely to congregate (and might need to use the phone). This presents administrators with a management challenge. After all, phone use in Microsoft Communications Server is typically maintained by using various voice policies and dial plans, policies and plans that are assigned to individual users. How can you manage a device that isn’t associated with an individual user?

One solution is to create Active Directory contact objects for all your common area phones. (These contact objects can be created using the New-CsCommonAreaPhone cmdlet.) Like user accounts, these contact objects can be assigned policies and voice plans. As a result, you will be able to maintain control over common area phones even though those phones are not associated with an individual user. For example, if you do not want people to have the ability to transfer or park calls from a common area phone, all you have to do is create a voice policy that prohibits call transfers and call parking, then assign that policy to the common area phone. (Or, more correctly, to the contact object that represents the common area phone.) For example, this command assigns the voice policy CommonAreaPhoneVoicePolicy to all your common area phones:

Get-CsCommonAreaPhone | Grant-CsVoicePolicy –PolicyName "CommonAreaPhoneVoicePolicy"

The Set-CsCommonAreaPhone cmdlet provides a way for you to modify the properties of the contact objects associated with common area phones. Among other things, you can change the contact’s Active Directory display name and well as the line URI associated with the phone. You can also use the –CsEnabled parameter to enable and disable the account for use with Microsoft Communications Server.

Return Types

Set-CsCommonAreaPhone does not return any objects or values. Instead, the cmdlet modifies existing instances of the Microsoft.Rtc.Management.ADConnect.Schema.OCSADCommonAreaPhoneContact object.

Examples

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

Copy Code
Get-CsCommonAreaPhone -Filter {LineUri -eq "tel:+14255556710"} | Set-CsCommonAreaPhone -DisplayName "Employee Lounge"

Example 1 modifies the Active Directory display name for the common area phone with the phone number 1-425-555-6710. To do this, Get-CsCommonAreaPhone is first called, along with the –Filter parameter; the filter value {LineUri -eq "tel:+14255556710"} limits the returned data to the common area phone where the LineUri property is equal to (-eq) tel:+14255556710. The returned object is then piped to Set-CsCommonAreaPhone, which sets the value of the DisplayName property to "Employee Lounge".

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

Copy Code
Get-CsCommonAreaPhone | Set-CsCommonAreaPhone -CsEnabled $True

The command shown in Example 2 enables all the common area phones currently configured use in the organization. To carry out this task, the command calls Get-CsCommonAreaPhone without any parameters in order to return a collection of all the common area phones. This collection is then piped to the Set-CsCommonAreaPhone cmdlet, which takes each item in the collection and sets the CsEnabled property to True ($True).

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

Copy Code
Get-CsCommonAreaPhone -Filter {Description -eq $Null} | Set-CsCommonAreaPhone -Description "Common area phone"

The preceding command adds a generic description to all the common area phones that do not have a value assigned to the Description property. To do this, Get-CsCommonAreaPhone is called along with the –Filter parameter; the filter value {Description -eq $Null} ensures that the only items returned are common area phones where the Description property is equal to (-eq) a null value ($Null). This filtered collection is then piped to Set-CsCommonAreaPhone, which assigns the generic description "Common area phone" to each item in the collection.