import .net framwork 3.5 to wsus

Mohsen Ebi 156 Reputation points
2020-12-16T10:03:25.813+00:00

In my domain network, all clients receive updates from the wsus .
Some clients need (.net framework 3.5 (includes .net 2.0 and 3.0)) to run a specific program
When I want to install this update through : Control Panel> program and Features>, it does not install. Because that client connects to wsus.
Now how can I import (.net framework 3.5 (includes .net 2.0 and 3.0)) in wsus so that clients can install this framework?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,054 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,159 questions
{count} votes

Accepted answer
  1. Rita Hu -MSFT 9,641 Reputation points
    2020-12-18T07:53:38.977+00:00

    Hi MohsenEbi-8665,

    Please refer to the below link to install the .net framework 3.5 on the clients:
    https://video2.skills-academy.com/en-us/windows-hardware/manufacture/desktop/deploy-net-framework-35-by-using-deployment-image-servicing-and-management--dism

    I tested it in my lab environment and please refer to the below picture:
    49375-10.png

    Command for your reference:

    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:E:\sources\sxs  
    

    In addition, I tested it in a windows 10 client which is pointed to the WSUS Server. But the result shown that the Windows 10 client could install the .net framework 3.5 successfully. Here is a screenshot for your reference:
    49278-9.png

    Please share with me the error information when you try to install the .net framework 3.5 in the Windows Features. I will do more research further.

    Please feel free to let me know if there are any feedback. Thanks for your time and have a great weekend.

    Regards,
    Rita


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Adam J. Marshall 9,381 Reputation points MVP
    2020-12-16T13:51:06.953+00:00

    You can't, but you can use the GPO method and the script below to do it.

    https://www.ajtek.ca/wsus/rsat-tools-on-1809-and-higher-other-features-on-demand-aka-optional-features/

    Follow the GPO Method in the link above.

    Then:

    With Internet:

    if ($(Get-WindowsCapability -Online -Name "NetFX3~~~~").State -eq "Installed") {
        Write-Output ".NET v3.5 is already installed."
    } else {
        Try {
            Add-WindowsCapability -Online -Name "NetFX3~~~~"
            Write-Output ".NET v3.5 is now installed."
        }
        Catch {
            Write-Output "Error in installing .NET v3.5."
            Write-Output "Verify that the following GPO is setup."
            Write-Output "Computer Configuration > Policies > Administrative Templates > System > Specify settings for optional component installation and component repair : Enabled"
            Write-Output "Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS) : Enabled"
            Write-Output $_.Exception
            Write-Error -Exception $_.Exception
        }
    }
    

    Without internet:

    if ($(Get-WindowsCapability -Online -Name "NetFX3~~~~").State -eq "Installed") {
        Write-Output ".NET v3.5 is already installed."
    } else {
        Try {
            Enable-WindowsOptionalFeature -Online -FeatureName NetFx3 -Source '\\server\share\sources\sxs'
            Write-Output ".NET v3.5 is now installed."
        }
        Catch {
            Write-Output "Error in installing .NET v3.5."
            Write-Output $_.Exception
            Write-Error -Exception $_.Exception
        }
    }
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.