https://technet.microsoft.com/en-GB/library/dn482069.aspx
as for error 87 The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
reading it might help you find the fail point.
.....
this might be easier
This documentation is archived and is not being maintained.
Deploy .NET Framework 3.5 by using Deployment Image Servicing and Management (DISM)
Updated: October 20, 2013
Applies To: Windows 8, Windows 8.1
You can use the Deployment Image Servicing and Management (DISM) command-line tool to create a modified image to deploy .NET Framework 3.5.
ImportantImportant
For images that will support more than one language, you must add .NET Framework 3.5 binaries before adding any language packs. This order ensures that .NET Framework 3.5 language resources are installed correctly in the reference image and available to users and applications.
In this topic:
Using DISM with Internet connectivity
Using DISM with no Internet connectivity
Using DISM with Internet connectivity
Requirements
Internet connection
Access to Windows Update. If the PC or server is behind a firewall or uses a proxy server, see KB900935 - How the Windows Update client determines which proxy server to use to connect to the Windows Update Web site.
Windows® 8, Windows Server® 2012, or the Windows Assessment and Deployment Kit (Windows ADK) tools.
Installation media
Administrator user rights. The current user must be a member of the local Administrators group to add or remove Windows features.
For an online reference image that can access Windows Update
Open a command prompt with administrator user rights (Run as Administrator) in Windows 8 or Windows Server 2012.
To Install .NET Framework 3.5 feature files from Windows Update, use the following command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
Use /All to enable all parent features of the specified feature. For more information on DISM arguments, see Enable or Disable Windows Features Using DISM.
On Windows 8 PCs, after installation .NET Framework 3.5 is displayed as enabled in Turn Windows features on or off in Control Panel. For Windows Server 2012 systems, feature installation state can be viewed in Server Manager.