In the process of installing SQL Server 2012 on a Windows Server 2012 server, an error was reported, an installation failed,
During the installation of SQL 2012, the following error occurred: An error occurred while enabling Windows feature NetFx3, error code:-2146498298. Try to enable Windows features NetFx3 from Windows Management Tools, and then rerun Setup. For more information about how to enable Windows features, see http://go.microsoft.com/fwlink/?linkid=227143
Looked up a lot of information, found that there is a method, after testing, can be used.
The workaround:
1. Locate the Windows Server 2012 installation disk, such as the ISO file, to suspend it on the drive.
2. Open Window PowerShell and the administrator runs the following command:
Import-module Servermanager
Dism.exe/online/enable-feature/all/featurename:netfx3/source:d:\sources\sxs
(where Source:d:\sources\sxs, refers to the system drive installation disk path)
After 10 minutes, wait for the operation to complete, restart the system, and then reinstall SQL Server 2012 to install successfully.