Quick tip for those googling.
Sometimes after reinstalling Lync roles or running Enable-Cscomputer the Lync Server Management Shell (LMS) will hang with a blinking cursor in the top left corner.
The fix to this is really simple.
Close all Lync Server Management Shell windows and run regular old PowerShell, then Import the Lync module with the following Cmdlet (don’t forget Lync-online if your multitennant)
Once the command completes. Close the Powershell window and re-open Lync Server Management Shell. Voila you have LMS back.
Hope this helps.
Awesome thank you very much it worked for me 🙂