Install .Net 4 on Windows 2008 R2

1. Confirm you have Server 2008 R2 SP1 or later
2. Enable the following features on your Operating System:
DISM.exe /online /enable-feature /featurename:ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64
3. Install .NET 4.0 for Server Core. You can download it at:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=22833