Lync Server Management Shell 2013 does not load and hangs with a black screen on a Windows Server 2012 R2 server

Problem

You’ve just completed deploying Lync Server 2013 on a Windows Server 2012 R2 server but notice that the Lync Server Management Shell does not load and hangs with a black screen regardless of whether you run it as an administrator or not:

image

image

Solution

This only appears to affect Windows Server 2012 R2 deployments as the application shortcut appears to be created with a missing quote:

C:Windowssystem32WindowsPowerShellv1.0powershell.exe -noexit -command “cd $env:UserProfile; Import-Module ‘C:Program FilesCommon FilesMicrosoft Lync Server 2013ModulesLyncLync.psd1’

image

Simply adding a quote back into the shortcut will correct the issue:

C:Windowssystem32WindowsPowerShellv1.0powershell.exe -noexit -command “cd $env:UserProfile; Import-Module ‘C:Program FilesCommon FilesMicrosoft Lync Server 2013ModulesLyncLync.psd1′”

image