Thursday, March 12, 2015

Turn on .NET Framework 3.5 at Windows Server 2012 R2.

In the "Server Manager" (you get there with that icon of a tower with a toolbox in front of it just right of the "start menu" icon) pick "Add Roles and Features" below the "Manage" menu at the upper right. Step through the wizard. At "Features" there is a checkbox for ".NET Framework 3.5 Features" ...and unfortunately here you may see an error stating:

Do you need to specify an alternate source path? One or more installation selections are missing source files on the destination server. The server will try to get missing source files from Windows Update, or from a location that is specified by Group Policy. You can also click the "Specify an alternate source path" link on this page to provide a valid location for the source files.

 
 

...followed by an error stating:

Installation of one or more roles, role services, or features failed. The source files could not be found. Try installing the roles, role services or features again in a new Add Roles and Features Wizard session, and on the Confirmation page of the wizard, click "Specify an alternate source path" to specify a valid location of the source files that are required for the installation. The location must be accessible by the computer account of the destination server.

 
 

It turns out you cannot just fix this by attempting to download and install and executable for the 3.5 Framework from http://www.microsoft.com/en-us/download/details.aspx?id=25150, but instead: In VMWare click the "Show or hide console view" icon then the "Edit virtual machine settings" link then "CD/DVD (SATA)" and finally "Use ISO image file:" set the .iso that created the VM's OS as searchable from a drive, for example the X drive. Type "mmc" at the search to get the "Console1" window. Go to "Add/Remove Snap-in..." at the "File" menu and pick "Group Policy Object Editor" which will put "Local Computer Policy" back in the main pane which will expand to show "Computer Configuration" which will expand to show "Administrative Templates" which will expand to show "System." "System" has within it "Specify settings for optional component installation and component repair" which needs to be doubled-clicked up to bring up a dialog box where the "Enabled" radio button needs to be checked. On the other side of this open PowerShell as Administrator and type "gpupdate /force" to rollout the "Enabled" state. When you walk back through the wizard again, you will need to specify a route to X:\sources\sxs wherein the X is the drive you specified.

No comments:

Post a Comment