### 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
}
$input $restartServer = Read-Host " [?] FinishedFFinished installing .NET 3.5 Features. Please check the Output for any Errors. It is mandatory, to restart the Server before installing the CoreOne Suite or other dependencies. Restart Server now? [y/n]"
switch($input$restartServer){
y{Restart-computer -Force -Confirm:$false}
n{Write-Host " [w] Please make sure to start the Server manually before executing further installations steps."
pause}
default{Write-Warning " [w] Invalid Input"}
}
} 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
} |