Quantcast
Channel: UC Administration Blog
Viewing all articles
Browse latest Browse all 327

Useful PowerShell command for Common Area phone.

$
0
0

Useful PowerShell command for Common Area phone.

Recently enabled Lync common Area Phone for customer so though to share useful command let.
To create Active Directory Domain Services contact objects for all your common area phones.  To create a new common area phone contact object, use the New-CsCommonAreaPhone cmdlet. At a minimum, you must supply the following information when creating a contact object:
·       LineUri: The telephone number assigned to the common area phone. Note that you must use the E.164 format when specifying the phone number.

·       RegistrarPool: The fully qualified domain name (FQDN) of the Registrar pool that will host the contact object.

·       OU: Distinguished name of the Active Directory container where the contact object will be created.


How to modify the properties of an existing common area phone, contact object.

Set-CsCommonAreaPhone -Identity "phone1" -SipAddress "sip:phone1@mydomain.com" 

How to enable hot desking for a common area phone:

New-CsClientPolicy -Identity "NewCommonAreaPhonePolicy" - EnableHotdesking $True

Modify existing policy:

Set-CsClientPolicy -Identity "ExistingCommonAreaPhonePolicy" - EnableHotdesking $True
 
Set-CsClientPolicy -Identity "ExistingCommonAreaPhonePolicy" - EnableHotdesking $False
 

Removes all the common area phones where the display name includes the string value "Building 14":

Get-CsCommonAreaPhone | Where-Object {$_.DisplayName -match "Building 14"} | Remove-CsCommonAreaPhone

Assigns the per-user voice policy ‘VoicePolicy’ to the common area phone that has the Identity Building 14 Lobby.

Grant-CsVoicePolicy -Identity "Building 14 Lobby" -PolicyName "VoicePolicy”

The per-user voice policy VoicePolicy is assigned to all the common area phones configured for use in the organization.

Get-CsCommonAreaPhone | Grant-CsVoicePolicy  -PolicyName "VoicePolicy"

 
Thank you.

Viewing all articles
Browse latest Browse all 327