Topic Last Modified: 2010-12-07

Returns information regarding management options for Microsoft Lync 2010 Phone Edition. This includes such things as the required security mode and whether or not the phone should automatically be locked after a specified period of inactivity.

Syntax

Get-CsUCPhoneConfiguration [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>]
Get-CsUCPhoneConfiguration [-Filter <String>] [-LocalStore <SwitchParameter>]

Parameters

Parameter Required Type Description

Identity

Optional

Xds Identity

Indicates the unique identifier for the collection of unified communications (UC) phone configuration settings you want to return. To refer to the global settings use this syntax: -Identity global. To refer to a collection configured at the site scope, use syntax similar to this: -Identity "site:Redmond". Note that you cannot use wildcards when specifying an Identity. If you need to use wildcards then include the Filter parameter instead.

If this parameter is not specified then Get-CsUCPhoneConfiguration returns a collection of all the UC phone configuration settings in use in the organization.

Filter

Optional

String

Enables you to use wildcard characters in order to return a collection (or collections) of UC phone configuration settings. To return a collection of all the settings configured at the site scope, use this syntax: -Filter site:*. To return a collection of all the settings that have the string value "EMEA" somewhere in their Identity (the only property you can filter for), use this syntax: -Filter *EMEA*.

LocalStore

Optional

Switch Parameter

Retrieves the UC phone configuration data from the local replica of the Central Management store rather than from the Central Management store itself.

Detailed Description

Lync 2010 Phone Edition represents the merging of the telephone and Microsoft Lync 2010. Lync 2010 Phone Edition uses special hardware (that is, a Lync 2010-compatible telephone) that can function as a Voice over Internet Protocol (VoIP) telephone. In addition, this hardware can also act as a Lync 2010-like endpoint: you can set your current status; check the status of your Lync 2010 contacts; search for new contacts; and carry out many of the other activities you are used to doing with Lync 2010.

The CsUCPhoneConfiguration cmdlets enable you to manage your Lync 2010 phones; for example, you can control such things as the minimum length of the personal identification number (PIN) used to log on to the phone, and whether or not that phone will automatically lock itself after a specified period of inactivity.

Phone configuration settings can be applied at either the global scope or at the site scope. (Settings applied at the site scope take precedence over settings applied at the global scope.) The Get-CsUCPhoneConfiguration cmdlet enables you to retrieve information about the phone configuration settings current employed throughout your organization.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsUCPhoneConfiguration cmdlet locally: RTCUniversalUserAdmins, RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsUCPhoneConfiguration"}

Input Types

None. Get-CsUCPhoneConfiguration does not accept pipelined input.

Return Types

Get-CsUCPhoneConfiguration returns instances of the Microsoft.Rtc.Management.WritableConfig.Policy.Voice.UcPhoneSettings object.

Example

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

Copy Code
Get-CsUCPhoneConfiguration

The command shown in Example 1 returns all of the UC phone configuration settings currently in use in the organization. Calling Get-CsUCPhoneConfiguration without any parameters always returns a complete collection of phone configuration settings.

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

Copy Code
Get-CsUCPhoneConfiguration -Identity site:Redmond

In Example 2, only the UC phone configuration settings that have the Identity site:Redmond are returned. Because Identities must be unique, this command will never return more than one collection of phone configuration settings.

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

Copy Code
Get-CsUCPhoneConfiguration -Filter site:*

In the preceding command, all the UC phone settings that have been configured at the site scope are returned. To do this, Get-CsUCPhoneConfiguration is called, along with the Filter parameter; the filter value "site:*" limits the returned data to settings where the Identity property (the only property you can filter on) begins with the string value "site:". By definition, any settings that have an Identity that begins with the string value "site:" are settings that have been configured at the site scope.

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

Copy Code
Get-CsUCPhoneConfiguration | Where-Object {$_.SIPSecurityMode -eq "Medium"}

Example 4 returns the UC phone configuration settings where the SIP security mode is set to Medium. (SIP security can be set to Low, Medium, or High.) To carry out this task, the command first uses Get-CsUCPhoneConfiguration without any additional parameters in order to return a collection of all the UC phone settings configured for use in the organization. This collection is then piped to the Where-Object cmdlet, which picks out only those settings where the SIPSecurityMode property is equal to Medium.

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

Copy Code
Get-CsUCPhoneConfiguration | Where-Object {$_.EnforcePhoneLock -eq $False -or $_.MinPhonePinLength -lt 6}

In Example 5, UC phone settings are returned that meet one or both of the following criteria: 1) phone locking is not enforced; and/or, 2) the minimum PIN length is less than 6 digits. To do this, the command first calls Get-CsUCPhoneConfiguration to return a collection of all the UC phone settings currently in use in the organization. This collection is then piped to Where-Object, which selects those items that meet one (or both) of the following criteria: 1) the EnforcePhoneLock property is equal to False; and/or, 2) the MinPhoneLength property is less than 6.

The -or operator tells Where-Object to pick settings that meet either (or both) of the criteria. To pick settings that meet both the criteria (in this case, meaning that phone locking is not enforced and the PIN length is less than 6) use the -and operator:

Where-Object {$_.EnforcePhoneLock -eq $False -and $_.MinPhonePinLength -lt 6}

See Also