Lync Server 2013 Management Shell in not working on Windows Server 2012 R2


If you are installing Lync Server 2013 on Windows Server 2012 R2, you may face a problem with Lync Server Management Shell. Lync Server Management Shell will get stuck without any user prompt.

Close Lync Server Management Shell.

There is a trick to get out from this problem which you need to apply for each profile that will use Lync Server Management Shell and on every system from where you have to access Lync Server Management Shell.

Please follow below steps to solve this problem:

To get the Lync Server Management Shell target path, you can access “Lync Server Management Shell” shortcut from C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Lync Server 2013 or you can locate directly from Start menu also.

 

Right Click on “Lync Server Management Shell” shortcut and go to the properties. Copy the target path (for example in my server the path is: 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’).

 

Open Windows PowerShell (Run as Administrator) and paste the same in user prompt [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’]and add inverted comma(“) in last.

Complete Path: 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’

You will get Lync user prompt in windows PowerShell, to cross verify you can run Lync Server Management Shell Cmdlets such as: Get-CsServerVersion.

Now open Lync Server Management Shell, hopefully you will get user prompt.

Advertisement

2 thoughts on “Lync Server 2013 Management Shell in not working on Windows Server 2012 R2

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 )

Facebook photo

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

Connecting to %s