I ran into a problem opening the Lync 2013 Management Shell. this happened on a fresh installation Windows 2012 R2. When started it didn’t come up with a prompt
Start Windows Powershell as Administrator
copy and past the correct target of the Management Shell :
powershell.exe -noexit -command “cd $env:UserProfile; Import-Module ‘C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1′“
do a test like get-cscomputer.
now try and open the normal Lync Management Shell, everything should work.