Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Introduction

Note

Please Install the .NET 3.5 Features AFTER you have installed all other necessary Windows Roles & Features

...

In our example this is the drive D:\
D:\Sources\sxs

...

Powershell Script for installing the required .NET 3.5 Features

The above listed required .NET 3.5 Features can be installed thorugh Powershell.

Call the Powershell about Server Manager - Tools - Windows PowerShell ISE. Copy and Paste the script and Execute it (Play-Button).

Code Block
languagepowershell
### Please mount the corresponding ISO to your OS Version and define the Source-Folder below
$InstalllationSourcesFolderDotNet35 = 'D:\sources\sxs'

Write-Host "    [i] Check if ISO is mapped."
if (Test-Path -Path $InstalllationSourcesFolderDotNet35) {
            Write-Host "    [i] ISO is mounted and Path is accessible:" $InstalllationSourcesFolderDotNet35
            Write-Host "    [i] Start Installation of .NET 3.5 Feature"
            Install-WindowsFeature Net-Framework-Core -source $InstalllationSourcesFolderDotNet35
            Add-WindowsFeature NET-HTTP-Activation,NET-Non-HTTP-Activ -source $InstalllationSourcesFolderDotNet35
            } else {
            Write-Host "    [e] Your ISO for installing .NET 3.5 is not mapped or the given Path is not valid. Installation will abort. Please mount the corresponding ISO to your OS Version and execute the script again. Configured Path: " $InstalllationSourcesFolderDotNet35
            }