Script to Enable users to use Lync Voice

Dear All,

I configured Lync 2013 Enterprise Voice in my company, it's works fine, i have multiple places which each has a unique configuration (Dial Plan and Voice Policy), I'm looking for powershell script which allow me to enable voice for users , assign them SIP URI, Dial Plan and Voice Policy, something can be done though the Department attribute for each users, so all users in Sales they will be assigned a specific dial plan and policy.

please help.

thanks
RhalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jakob DigranesSenior ConsultantCommented:
busy morning, maybe tweaking of this works; http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28498106.html

Otherwise, I can look into it a bit later
0
RhalaAuthor Commented:
Hi Jakob,

What mentioned is to create and enable Lync for users, i'm looking for something different :)
0
Jakob DigranesSenior ConsultantCommented:
Get-ADGroup -Identity 'lync' | Get-ADGroupMember -verbose | foreach {get-csaduser -identity $_.Name | foreach {
$sipit = $_.ipphone
$sipit = "tel:" + $sipit
Set-CsUser -Identity $_.Name -EnterpriseVoiceEnabled $true -LineURI $sipit
}}
pause

and add Voice Policy and such
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RhalaAuthor Commented:
hi Jakob,

Could you please explain what's each line do

thanks a lot
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Chat / IM

From novice to tech pro — start learning today.