在命令行执行:DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs
- Use /All to enable all parent features of the .NET Framework 3.5.
- Use /LimitAccess to prevent DISM from contacting Windows Update.
- Use /Source to specify the location of the files needed to restore the feature.
注意:我们需要先把windows 8或者windows 2012的光盘挂在到D盘,因为.net 3.5功能所需的一些文件在光盘目录下的X:\Sources\SxS目录下。