Skype for Business Server 2015 Component Version using PowerShell

First of all, welcome to the UC Lobby @ TechNet. As a first article, we decided to start with the new Skype for Business Server 2015 and how to check the components version using PowerShell.

There are two methods: using Windows Registry or the WMI Classes. Both methods were previously published for Lync Server 2010 and 2013:

Lync Server Component Version using PowerShell (Windows Registry)
http://uclobby.com/2014/12/15/lync-server-component-version-using-powershell-windows-registry/

Lync Server Component Version using PowerShell (WMI Classes)
http://uclobby.com/2013/08/14/lync-server-component-version/

The preferred method is using the Windows Registry method, since it is faster than the WMI method.

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | ?{$_.DisplayName -like “*Skype for Business*”} | Sort-Object DisplayName | Select DisplayName, DisplayVersion, InstallDate | Format-Table -AutoSize

Using search filter *Skype for Business* will also get the Skype for Business Online PowerShell Module version, which is installed by default when you install Skype for Business Server 2015 components.

If for some reason you need to use the WMI method, run this:

Get-WmiObject -query ‘select name, version from win32_product’ | where {$_.name -like “*Skype for Business*”} | Sort-Object Name | Select Name, Version | ft -AutoSize

If you experience any issue with the PowerShell window length, run the following in PowerShell:

$pshost = get-host
$pswindow = $pshost.ui.rawui

$newsize = $pswindow.buffersize
$newsize.height = 3000
$newsize.width = 100
$pswindow.buffersize = $newsize

$newsize = $pswindow.windowsize
$newsize.height = 50
$newsize.width = 100
$pswindow.windowsize = $newsize

Please check on PowerShell window/buffer resizing in the following article:

How Can I Expand the Width of the Windows PowerShell Console?
http://blogs.technet.com/b/heyscriptingguy/archive/2006/12/04/how-can-i-expand-the-width-of-the-windows-powershell-console.aspx