Solved

.net framwork 3.5 on windows server 2012 R2

Posted on 2016-09-22
3
49 Views
Last Modified: 2016-09-22
Hi Experts,

I have a server and it already has .net framework 4.5 as a role. I want to install a license server for an application and it wants me to install the .net framework 3.5 but it also asks me to proceed that install with out it. What do you think shall Install the server application anyway.

The other question is if I try to add the .net framework 3.5 features, the server says it can not find the installation files. How shall I proceed please this is urgent issue.

Thanks,
0
Comment
Question by:Zak
3 Comments
 
LVL 90

Assisted Solution

by:John Hurst
John Hurst earned 125 total points
ID: 41811189
It should be available in Roles and Features. Try this Microsoft article below

 https://technet.microsoft.com/en-ca/library/dn482071.aspx
0
 
LVL 14

Assisted Solution

by:Schnell Solutions
Schnell Solutions earned 125 total points
ID: 41811211
Hello,

It is that by default Windows does not include the installers for .Net framework, but you have many options to complete it, basically they consist on having access to the Internet or the installation media (USB, DVD, Network Share).

Some methods (You can use any one of them):

- INTERNET
If the computer is able to connect to the internet, just complete the process and it will connect to the Internet and download the needed files.

- CMD (As Admin, Let's say that you have the Windows Server media on the E drive)
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:E:\Sources\sxs

- POWERSHELL (As Admin, Let's say that you have the Windows Server media on the E drive)
Install-WindowsFeature Net-Framework-Core -source E:\Sources\sxs

- GUI
Complete the process normally, but make a stop at the step of "Confirm installation selections", there you will choose the location of your source files. For example E:
0
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 250 total points
ID: 41811308
Actually there is a bug in one of the microsoft updates that makes net3.51 unavailable (/removed).. The update added some registry values specific for .net 3.5 even if .net 3.5 was not installed.


The basics are check for KB
 Get-WindowsPackage -Online | Where-Object 'PackageName' -match '2966828' | Remove-WindowsPackage -Online -Verbose -NoRestart

Open in new window

then install .net framework
     
Install-WindowsFeature -Name NET-Framework-Core -Source X:\sxs -Restart:$false -Verbose

Open in new window

you will need the sxs folder from the installation media
Here is the code that I use in MDT    
# Determine where to do the logging 
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment 
$logPath = $tsenv.Value("_SMSTSLogPath") 
$logFile = "$logPath\$($myInvocation.MyCommand).log" 
# Start the logging 
Start-Transcript $logFile 
# Convert the task sequence variables into PowerShell variables 
$tsenv.GetVariables() | % { Set-Variable -Name "$_" -Value "$($tsenv.Value($_))" } 
# Write out a specific variable value 
Write-Host $_SMSTSMDataPath 
# Get all the variables 
Get-ChildItem Variable:
$os = get-ciminstance -class win32_OperatingSystem | Select-Object version,ProductType
write-output 'Testing for Windows Server 2012R2'
if ($os.version -like '6.3*') {
        if (($os.ProductType -eq '2') -or ($os.ProductType -eq '3')) {
        write-output ('Found Server 2012R2')
        if(Get-HotFix | Where-Object HotfixID -match  '2966828'){
        write-output ('Testing for KB2966828')
            Get-WindowsPackage -Online | Where-Object 'PackageName' -match '2966828' | Remove-WindowsPackage -Online -Verbose -NoRestart
            # Install from local sources\sxs folder
            Write-output('Found KB2966828 - removing and then installing NetFramework 3.5')
            Install-WindowsFeature -Name NET-Framework-Core -Source X:\sxs -Restart:$false -Verbose
            }
    }
}
# Stop logging 
Stop-Transcript

Open in new window

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now