Skype for Business Server 2015 Component Version using PowerShell

There are two methods to get the Skype for Business Server component version: using Windows Registry or the WMI Classes. Both methods were previously published for Lync Server 2010 and Lync Server 2013:

Lync Server Component Version using PowerShell (Windows Registry)

Lync Server Component Version using PowerShell (WMI Classes)

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:

[code language=”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
[/code]

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