How to enable the .Net Framework 3.5 in Windows 8

The .Net Framework 3.5 does not come installed by default in Windows 8. You can add this through the adding and removing features dialog, but if you run into any issues there here is a way to also do it from the command line. Start the command prompt as an administrator and enter the following:

    dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:sourcessxs