Make sure Windows 8.1 setup files are on hand and type the following into command prompt when run as admin:
Dism /online /enable-feature /featurename:NetFx3 /All /Source:F:\sources\sxs /LimitAccess
Change /Source to the correct drive path letter of the Windows 8.1 setup files.