This validates and optionally installs the Exchange 2013 Windows Server Role and Feature dependencies. The default just provides a comma delimited list of what is missing.
To remediate/install missing dependencies either use the "-Remediate" switch when executing or copy the results and paste them for the Install-WindowsFeature cmdlet.
This script was written with using SCCM Compliance Management in mind. For details reference http://blogs.technet.com/b/ken_brumfield/archive/2014/03/27/managing-windows-server-role-settings-via-system-center-configuration-manager.aspx.
Note: Subcategory says Exchange 2010. This script is definitely for Exchange 2013. Said subcategory was not available as of the posting.
Update: 6/24/2014 - Added installing Windows-Identity-Foundation to the script and checked to determine if a reboot was needed, rather than always rebooting.