Lync 2013 – Script Policy Summary – LyncPolicySummary.ps1

This simple script will summarise how many users are assigned each policy in Lync as well as how many users are against each registrar pool. # Author: Created by Weakest Lync, www.WeakestLync.com # Purpose: Script to show the number of users assigned each policy # Version: 1.0 # Changes: DATE - Change # 09/11/2014 - Release 1.0 $users = Get-CsUser Write-Host "Registrar Pool Sumamry" -ForegroundColor Yellow $users | Group-Object RegistrarPool | Select-Object Count, Name Write-Host "Voice Policy Summary" -ForegroundColor Yellow $users | Group-Object VoicePolicy | Select-Object Count, Name Write-Host "Dial Plan Summary" -ForegroundColor Yellow $users | Group-Object DialPlan | Select-Object Count, Name Write-Host "Conferencing Policy Summary" -ForegroundColor Yellow $users | Group-Object ConferencingPolicy | Select-Object Count, Name Write-Host "External Access Summary" -ForegroundColor Yellow $users | Group-Object ExternalAccessPolicy | Select-Object Count, Name Write-Host "Location Policy Summary" -ForegroundColor Yellow $users | Group-Object LocationPolicy | Select-Object Count, Name Write-Host "Client Policy Summary" -ForegroundColor Yellow $users | Group-Object ClientPolicy | Select-Object Count, Name Write-Host "Archiving Policy Sumamry" -ForegroundColor Yellow $users | Group-Object ArchivingPolicy | Select-Object Count, Name Write-Host "Pin Policy Sumamry" -ForegroundColor Yellow $users | Group-Object PinPolicy | Select-Object Count, Name Write-Host "Mobility Policy Sumamry" -ForegroundColor Yellow $users | Group-Object MobilityPolicy | Select-Object Count, Name Write-Host "Persistent Chat Policy Sumamry" -ForegroundColor Yellow $users | Group-Object PersistentChatPolicy | Select-Object Count, Name Write-Host "Hosted Voicemail Policy Sumamry" -ForegroundColor Yellow $users | Group-Object HostedVoicemailPolicy | Select-Object Count, Name

9 November 2014 · 2 min · Chris Hayward

Lync 2013 – Import-CsUserData Error

The scenario is a migration from Lync 2010 to Lync 2013 in a new Active Directory forest and want to migrate users buddy lists. You run DBIMPEXP.EXE on the Lync 2010 environment to export the user data to XML. On the 2013 system you convert the XML to Lync 2013 format then run Import-CsUserData. Convert-CsUserData -inputfile C:temp2010UserData.xml -outputfile C:temp2013UserData_Converted.zip -targetversion Current Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName "C:temp2013UserData_Converted.zip" When running Import-CsUserData you get the error: PS C:Usersusername> Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName "C:temp2013UserData_Converted.zip" Import-CsUserData : '@' is an unexpected token. The expected token is ';'. Line 1364, position 39. At line:1 char:1 + Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName "C:temp2 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (C:Usersuserna...mpExpImport.Zip:String) [Import-CsUserData], XmlException + FullyQualifiedErrorId : ExportFailure.IO,Microsoft.Rtc.Management.BlobStore.ImportOcsUserStoreDataCmdlet If you look at line 1364 you will notice that the users SIP address has an “&” (amersand). To fix I removed the users entry from the XML (All lines from <app:DocItem Name= to line </app:DocItem>) and zipped the files again. The import then ran successfully.

9 November 2014 · 1 min · Chris Hayward

Review: Kuando Busylight UC for Microsoft Lync

http://busylight.com/ I recently received a Busylight to test from Kuando. Inside the box you receive a Busylight USB device, a sticky pad to attach the device to your desk or screen and some brief instructions. The Busylight itself is constructed from black plastic base with an aluminium main body. Installation is very simple, download and install the software from the Busylight website: http://www.busylight.com/support/lync Busylight runs in the system tray and starts at system startup. You can right click on the Busylight icon in the system tray to access menu features. You can change the speaker volume and make changes to the colours Busylight flashes. It’s worth noting that you can also fully customise the colours using registry settings. ...

20 June 2014 · 3 min · Chris Hayward

Lync – Increase Internal Certificate Validity Period

When you deploy Lync and assign internal certificates to your Lync servers (E.g. Front End, Internal Edge, SBA and Gateways) by default you will only have a 2 year certificate from the “Web Server” template. I like to create a new Certificate Template for Lync with a 5 year lifespan as it can be quite annoying having to renew certificates, especially on the Edge servers and Gateways where you have to export the cert request. I have tried creating a 10 year Certificate Template but the Lync Deployment Wizard complains that the cert is valid for over 5 years. It’s also a good idea to set your Certificate Authority validity period to a long period, I usually opt for 20/25 years. This article will cover how to create a 5 year Certificate Template for Lync. By assigning Certificates to your Lync servers with a longer validity period you won’t have to renew them as often. ...

24 February 2014 · 2 min · Chris Hayward

Lync 2013 – Standard Edition Pool Pair Failover Script

Lync 2013 introduced a new feature called Pool Pairing. Given the scenario below with 2 sites using Lync Standard Edition with paired pools, in the event that Front End 01 was to fail, or Site 1 failed completely all users will automatically register to Front End 02. However they will receive an error in their Lync client “Limited Functionality due to Outage”, lose their buddy lists, presence information, conferencing features and any Response Groups that were homed on FE01. They will still be able to make inbound and outbound PSTN calls (assuming you have resilient Voice Routing) and they will still be able to search contacts to make P2P audio and video calls. To restore full functionality you need to manually failover the pool following the procedure here: http://technet.microsoft.com/en-us/library/jj204678.aspx ...

22 January 2014 · 9 min · Chris Hayward

Lync Tip: Quickly restart all Lync services using PowerShell

You need to restart all Lync services, open services.msc and see 10+ Lync Server services. Rather than go through each one hitting the stop or restart button with your mouse you can use PowerShell! Stop all Lync Services: Stop-CsWindowsService Start all Lync Services: Start-CsWindowsService

10 January 2014 · 1 min · Chris Hayward

Lync Tip: Bandwidth Requirements Simple Calculator

So you need to calculate how much bandwidth Lync will use, you launch google and type “Lync bandwidth requirements”. You click the top link for Microsoft Downloads “Lync 2010 and 2013 Bandwidth Calculator” here http://windowspbx.blogspot.co.uk/2012/01/simple-smb-lync-bandwidth-calculator.html. You download the zip, open the excel file then realise you don’t have a degree in quantum physics or it’s Friday and you just want some quick figures to work with. Behold Matt Landis’ “Very Simple SMB Lync Bandwidth Calculator” here: http://windowspbx.blogspot.co.uk/2012/01/simple-smb-lync-bandwidth-calculator.html ...

10 January 2014 · 1 min · Chris Hayward

Lync Tip: Port Query Tool

Struggling with Telnet/Microsoft Port Query Tool to test the correct firewall ports are open between Lync servers? I almost started making my own tool/script but this guy has done the hard work for me! http://flinchbot.wordpress.com/2013/05/10/portqueryui-config-xml-file-for-lync/ Really useful.

25 October 2013 · 1 min · Chris Hayward

Lync – Change queue overflow number with PowerShell Script

The scenario is you have created a Response Group (IVR) with an option to call an Out Of Hours engineer. You configure a queue overflow to forward straight to a mobile telephone number outside of your organisation as follows: The out of hours engineer changes on a rota and you want staff to be able to change the queue overflow number without giving them having to access the Lync Control Panel. I have created a PowerShell script that allows users to accomplish this. They can select from a list of names in the menu or manually type a number. Any changes are logged to a text file. ...

12 July 2013 · 3 min · Chris Hayward

Lync 2013 CDR Report – Recharge Call Costs

I needed a method to recharge departments call costs from Microsoft Lync and came across the following article by Frederik Lefevre: http://www.ucprofessional.com/2012/01/lync-cdr-report.html I found this was exactly what I required but unfortunately the SQL views were not compatible with Lync 2013. This is a simple guide on how to get this working on Lync 2013 for call costs in the UK: **SQL Database Configuration ** On the Lync Monitoring and Archiving SQL instance, create a Linked Server named “ADSI” with the following settings: ...

11 July 2013 · 3 min · Chris Hayward