The Lync Server 2013 Management Shell provides several cmdlets that can be used to test various functions of a server. A useful cmdlet for verifying the overall health of a server is
Test-CSComputer which verifies that all services are running, that the local computer group membership is correctly populated with the necessary Lync Server Active Mediation Server groups, and that the required Windows Firewall ports have been opened. The
Test-CSComputer cmdlet must be run from the local computer and it uses the following syntax:
Test-CSComputer -Report "C:\Test-CSComputer Results.xml"
After running the cmdlet, open the generated XML file to view a detailed analysis of each check.