Category Archives: Lync

A little while ago I posted a script for enabling users for Lync and settings some settings for that user. That script has been used here ever since I posted it and it has worked like a charm. However there’s always room for improvement, right?. So I have made a function out of it and for the first time (I think) I have even implemented some error handling. The function is also improved quit a bit on the help section and the info that is shown to the user after the function completes. As in the script, this function will enable the user for Lync and set some default settings like Dial Plan, Voice Policy, Conferencing Policy. It also gives you the option to specify a Line URI. The difference is that this function will use the default settings only if nothing else is specified, so you can change the…

Read more

I wrote this simple little script for enabling users for Lync. It asks for input on name, sipdomain and line uri. The rest is set using variables defined at the start of the script. If you only have one sipdomain you can change the script so that it doesn’t ask for it. Here’s the script in all its glory: $UI = (Get-Host).UI.RawUI $UI.WindowTitle = “Enable lync user” Import-Module Lync #Setting some variables $registrarpool = lyncpool.test.local $csdialplan = DialPlanSIPtrunk $csvoicepolicy = “SIP Trunk Service” $csconferencingpolicy = Conference #Ask for the rest of the information $name = Read-Host “Who do you want to Lync enable?” $sipdomain = Read-Host “Enter SIP domain” $lineuri = Read-Host “Enter line uri” Write-Host “Working…” #Enabling the user for Lync enable-csuser -identity $name -RegistrarPool $registrarpool -SipAddressType UserPrincipalName -SipDomain $sipdomain #Sleep for a few seconds (otherwise the next command might fail) Start-Sleep -s 3 #Setting settings on the user…

Read more

2/2