Solved

.net framwork 3.5 on windows server 2012 R2

Posted on 2016-09-22
3
83 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 92

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 79

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous Experts Exchange Articles (http://www.experts-exchange.com/ARTH_1864316.html?arthOrderBy=3&arthSort=1#arth), most have featured Basic and Intermediate VMware Topics.  As a Virtualisation Consultant, we implement many different virtual…
Table of Contents: Lesson 1 - Installing Windows Server 2012 (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/A_11592-Become-an-Administrator-Installing-Windows-Server-2012.html) Lesson 2 - Configuring Ser…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

813 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

10 Experts available now in Live!

Get 1:1 Help Now