Lync Server 2013 Management Shell: PowerShell doesn’t load

Issue

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.  

LyncBlackScreen

Investigation

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′.

MissingQuote

Target:

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.

Fix

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’

LyncRegularPS

… 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.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s