The Lync Server Management Shell does not load after applying July 2017 Cumulative Update (5.0.8308.992) to Lync Server 2013. You get a black window with a cursor that never loads.
The OS is Windows Server 2012 R2, and this happens on all Lync servers in the topology (Front End, Mediation, and Edge) where the update has been applied.
There are a couple of forum posts and blog articles that suggest the issue is caused by an unclosed target string on the shortcut. Note the missing quotation (“) mark after Lync.psd1′.
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command “cd $env:UserProfile; Import-Module ‘C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1’
Correcting the shortcut by closing the target string with a quotation mark didn’t work for me. I also checked a server that didn’t have the CU applied, and the target string was the same.
I found if you open a Windows PowerShell session, and run the following command …
Import-Module ‘C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1’
… or copy the entire target string from the shortcut and run that, it imports successfully (i.e. you can execute Lync cmdlets from within the session) AND it fixes the Lync Management Shell problem. The next time you run the Lync Management Shell it will load.