This was an annoying little issue I came up against when trying to install .NET Framework 3.5 on a Windows Server 2012 R2 virtual machine.
The normal procedure is to use Server Manager | Add Roles & Features and select .NET Framework 3.5 features from the list, see below