Wednesday, October 24, 2012

Install .NET Framework 3.5.1 using Powershell

Hi there,
I started to study SQL Server 2012 to take certification exam and I was setting up a lab environment.  In one of the steps the exercise was to install .NET Framework 3.5.1 using powershell.  .NET Framework 3.5.1 is prereq for SQL Server 2012.

To be able to install .NET Framework the I needed to start the session elevated to administrator and then execute the powershell commands.  To accomplish this I took the following steps:

  1. Right click the powershell icon on the taskbar and click on 'Run As Administrator'.
  2. In the powershell window type this command 'Import-Module ServerManager' then hit enter to execute (exclude the single tick before the Import and after the ServerManager)
  3. execute the command 'add-windowsfeature net-framework-core' and hit enter (leave out the single ticks around the command)
Here is the screenshot of the whole process.



HTH,
Bulent