The Lync Server 2013 Management Shell provides a number of 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 server, which verifies that all services are running, that the local computer group membership is correctly populated with the necessary Lync Server Active Directory groups, and that the required Windows Firewall ports have been opened. The
Test-CSComputer cmdlet must be run from the local computer and 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.