Lync Common Area Phone Timeout – Automation

I got tired of manually setting the common area phone account to have a 60 second ring timeout so i scripted it.  Hope this help someone and saves them time….i just ran the script below in PowerShell, walked away to eat lunch and when i came back over 350 new CAP accounts had the 60 second timeout.

$CommonPhones = $null
$CommonPhones = Get-CsCommonAreaPhone | ?{$_.registrarpool -like “SomeFilterIfYouNeedIT*”}
$SERVER = “/server:LyncPoolName.Domain.Com”
$CALL= “/enablefwdnoanswer”
$CALL1 = “/callanswerwaittime:60”

foreach ($CommonPhone in $CommonPhones)
{

& ‘C:\Program Files\Microsoft Lync Server 2013\ResKit\SEFAUtil.exe’ $CommonPhone.sipaddress $SERVER $CALL $CALL1
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s