Open Power Shell in elevated mode (run as administrator)
- Type the following (or copy paste)
- Import-Module ServerManager
- Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy –Restart
- The second command will install the required components and reboot the server
- After reboot, open the Power Shell again in elevated mode.
- Type this to set NetTcpPortSharing service to automatic.
- Set-Service NetTcpPortSharing -StartupType Automatic
- Close the Powershell. Try running Exchange 2010 setup again.