Offline install of .NET Framework 3.5 in Windows 10 using DISM

Windows 10 comes with .NET framework 4.5 pre-installed, but many apps developed in Vista and Windows 7 era require the .NET framework v3.5 installed along with 4.5. These apps will not run unless you will install the required version. When you try to run any such app, Windows 10 will prompt you to download and install .NET framework 3.5 from the Internet. However, this will take a lot of time. You can save your time and install .NET Framework 3.5 from the Windows 10 installation media. This method is much faster and does not even require an Internet connection. Here is how to install it.

Advertisement


To install .NET Framework 3.5 in Windows 10, do the following:
  1. Insert your Windows 10 DVD, or double click its ISO image, or insert your bootable flash drive with Windows 10, depending on what you have.
  2. Open 'This PC' in File Explorer and note the drive letter of the installation media you have inserted. In my case it is disk D:
    installation media drive d
  3. Now open an elevated command prompt and type the following command:
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

    Replace D: with your drive letter for Windows 10 installation media.
    dism

You are done! This will install .NET framework 3.5 in Windows 10.
net installed seccessfully
To save your time, I have prepared a simple batch file which will save your time and will find the inserted installation media automatically. It looks like this:

@echo off
Title .NET Framework 3.5 Offline Installer
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.wim" set setupdrv=%%I
if defined setupdrv (
echo Found drive %setupdrv%
echo Installing .NET Framework 3.5...
Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess
echo.
echo .NET Framework 3.5 should be installed
echo.
) else (
echo No installation media found!
echo Insert DVD or USB flash drive and run this file once again. 
echo.
)
pause

Download the file, extract it from the ZIP archive to the Desktop, right click it and choose Run as administrator. The file will install .NET Framework 3.5 automatically after finding the drive letter of your Windows 10 installation media.
run as administrator
Click here to download the batch file.

That's it.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

410 thoughts on “Offline install of .NET Framework 3.5 in Windows 10 using DISM”

      1. Thanks Sergey
        For some reason internet installation wouldn’t work. your method worked great; much appreciated.

        1. Thanks Sergey,

          I have been at wits end trying to install .Net3.5 on Windows 10 after upgrading to Creator version. I kept getting an error that I couldn’t connect to the internet when trying to do the install through Windows Features. Your fix works perfectly – thanks a million.

          Regards
          Trevor

      2. it stuck at image version it cant go forward
        i waiting 30 minute
        but it can’t show ant loading
        i download os from official microsoft
        i have usb
        am activate using KMS pico is it get proble
        plz i want framwork cause here game cant work cause missing some dll, file dll file missing cause directX not install and direct x not install cause .netframwork not install

        ALSO ADOBE PRIMER PRO and ADOBE AFTER EFFECT also not working cause .net ( i thinking i m not sure)

  1. thanks man this worked great. I tried multiple other methods but nothing was working for me.

    The batch file worked on Win 10 tech preview build 9860 joined to a domain that is doing patch management. I was thinking the domain was causing me grief.

  2. Perfect! Tried a bunch of half-assed “solutions” and this is the only one that actually worked.

    Never even thought of checking the win10 media!

    Thanks!

  3. IT WORKED the batch file that is i could not get it to turn on for this one program i wanted to try i am only testing to see if i wanna buy in the future !!!!!!!!!!!!!!! THANKS MAN YOU ROCK

  4. Hello, I’ve tried those steps and it didn’t seem to work… :/ It stops loading at %99,8, I’ve even downloaded and tried the batch file too, not working…

  5. Build 10061, doesn’t work. Not the batch file, nor elevated command prompt. Thanks anyway though! Something in the latest build must be wonky…

  6. It worked for me on build 10074. Everything else I tried did not work, including the group policy changes, or using programs and features to install.

  7. Did not work for me in build 10130, got to 100%, then got Error: 0x800f0922

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    1. Did not work for me either, 98% then died with Error: 0x800f0922

      DISM failed. No operation was performed.
      For more information, review the log file.

      Windows 10 build 10130, with all updates installed from windows updates.
      On a company domain, with a windows update service on the network.

      1. Same for me… died at 99.0%. Still looking for a solution. Maybe we will just have to wait Microsoft fixes this.

  8. After searching for hours I finannly found a solution that worked for me:
    dism /online /add-package /packagepath:D:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    1. Great it works like a charm. Win 10 build 10586
      C:\WINDOWS\system32>dism /online /add-package /packagepath:F:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

      Deployment Image Servicing and Management tool
      Version: 10.0.10586.0

      Image Version: 10.0.10586.0

      Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.10586.0
      [==========================100.0%==========================]
      The operation completed successfully.

  9. Oh, great. The internet activation is suck, but the batch command help me to solve this problem. Thanks a lot, dude.

  10. Did not work on 10074 error 0x800f081e – ” specified package is not applicable to this image”. Tried all the methods I found on the WWW to no avail. Down to a re-install to see if some of the other apps I installed have caused this to fail.
    /enable-feature fails immediately
    /add-package gets to 97% then idles for a bit before it quits with the above error.
    Thanks for the hints, glad it worked for so many others.

  11. On final Windows 10 build, this does not work. Adding package does not work either. Neither works the graphical interface to install .NET 3.5.

    Seems to be broken for now.

    1. It WORKS on ANY Windows 10 build.
      You are doing something wrong, definitely.
      The only thing can be broken is the component store of the operating system.
      Try to run the following command:
      Dism /Online /Cleanup-Image /RestoreHealth
      You need to run it from the elevated command prompt.

      1. I had the same problem with the production build as MAK. I tried the Dism /Online /Cleanup-Image /RestoreHealth and it hung at 20%. I am running from an elevated command prompt…any ideas?

          1. Hmmm….both methods are failing for me with the following error:

            Error 6801
            Transaction support within the specified resource manager is not started or was shut down due to an error.

      2. DISM /Online /Cleanup-image /Restorehealth command completes successfully.

        Installing .Net 3.5 with DISM command still fails with error: 0x8e5e03fah.

          1. So this seems to be common issue with the final build. Hopefully the fix will come soon, since I have two critical application requiring older .net libraries.

  12. SO just fyi..I manually retyped the dism… .line.

    It failed at first, complained and told me to use /Source.

    I did, but I noticed I had /source (note it was case sensitive!!)

  13. If somehow it is not working for you, use this:

    Dism /online /enable-feature /featurename:NetFX3 /All /Source:”D:\sources\sxs\” /LimitAccess

    Of course, change the D: to the source drive. What I changed is adding ( ” ) and ( \ ), because for some reason it won’t work on my PC without those.

  14. Thanks and great, one question though:
    I am not good with batch files, how can I get user entry for installation media, drive name and just work on that driver rather than looping through all other drives?

    1. ehm, there is no other way to get the media drive name. You can only set it explicitly. However, it will not work on some other PC with the different drive name.

      1. C:\Windows\system32>dism /online /add-package /packagepath:H:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

        Deployment Image Servicing and Management tool
        Version: 10.0.10240.16384

        Image Version: 10.0.10240.16384

        Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10240.16384
        [==========================100.0%==========================]
        An error occurred – Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800736b3

        Error: 0x800f081e

        The specified package is not applicable to this image.

        The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

        C:\Windows\system32>

        plz help me iam getting this error

  15. For Windows 10, I succesfully installed the framework with this command line:

    dism /online /add-package /packagepath:F:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    Change “F” into whatever your install media driverletter is.

  16. Hey

    First, it’s so nice of you of sharing your little batch. Helps alot of ppl.

    Second, Why do games like stupid The Sims want you to install something that isn’t that simple.

    Third. When I write the command myself;
    – Dism /online /add-package /packagepath:G:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab
    – Dism /online /enable-feature /featurename:NetFx3 /All /Source:G:\sources\sxs\ /LimitAccess
    and when I run the batch I get error 14003. Below you can see a collection of info from dism.log when I did run the 2nd command.
    Show/Hide

  17. Microsoft Windows [Version 10.0.10240]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>dism /online /add-package /packagepath:D:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10240.16384
    [==========================100.0%==========================]
    An error occurred – Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800736b3

    Error: 14003

    The referenced assembly is not installed on your system.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\system32>

    please help

    1. Try …:F:\x64\ instead of just :F: It gives the program a target… took me months …sweetness and light

  18. Why you guys are trying to execute this command:
    dism /online /add-package
    Why not use the mentioned command:
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
    It works fine and it is included in the batch file to save you from typing.

    Regarding to your errors:
    err 0x800736B3 = ERROR_SXS_ASSEMBLY_NOT_FOUND
    You need to fix the component store, as mentioned here:
    https://winaero.com/blog/fix-error-14098-the-component-store-has-been-corrupted/

    1. I’m using the same command prompt as you wrote, still I’m facing this…
      C:\Windows\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:N:\sources\sxs /LimitAccess

      Deployment Image Servicing and Management tool
      Version: 10.0.10240.16384

      Image Version: 10.0.10240.16384

      Enabling feature(s)
      [==========================100.0%==========================]

      Error: 14003

      The referenced assembly is not installed on your system.

      The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

  19. C:\Windows\system32>dism /online /add-package /packagepath:H:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10240.16384
    [==========================100.0%==========================]
    An error occurred – Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800736b3

    Error: 0x800f081e

    The specified package is not applicable to this image.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\system32>

    iam getting this erroe plz help me

  20. when I type “Dism /online /enable-feature /featurename:NetFX3 /All /Source:F:\sources\sxs /LimitAccess” in command prompt this messege is showed
    “Error: 740

    Elevated permissions are required to run DISM.
    Use an elevated command prompt to complete these tasks.”

    can you help me to do it?

  21. Hi, Sergey Tkachenko,

    I tried your script using administrator right, it is 100% completed, but no downloading happened, what is wrong?

    Thanks

    paidforyou

  22. Please, I need help!
    ——————————————————————————————————————————————————–
    Microsoft Windows [versão 10.0.10240]
    (c) 2015 Microsoft Corporation. Todos os direitos reservados.

    C:\WINDOWS\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:G:\sources\sxs /LimitAccess

    Ferramenta de Gerenciamento e Manutenção de Imagens de Implantação
    Versão: 10.0.10240.16384

    Versão da Imagem: 10.0.10240.16384

    Habilitando recurso(s)
    [==========================100.0%==========================]

    Erro: 2

    O sistema não pode encontrar o arquivo especificado.

    O arquivo de log do DISM pode ser localizado em C:\WINDOWS\Logs\DISM\dism.log
    ———————————————————————————————————————————————————–

    I have the Error 2, and I can’t fix it.

  23. There is a even easyer to install NET Framework 3.5 and that is to open the old control panel, by right clicking on the windows flag then goto programs and click turn windows features on or of. And i the box that turns up you can choose to install NET Framework 3.5 all the way up to 4.6.
    Good luck.

  24. This is what I get after the 1st step

    C:\Users\Home-PC>Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

    Error: 740

    Elevated permissions are required to run DISM.
    Use an elevated command prompt to complete these tasks.

    C:\Users\Home-PC>

  25. Reading through all the posts, it seems strange that no one noticed something that caused an error in my installation.

    The command “/featurename:Net-FX3” should actually be “/featurename:NetFX3”, that dash in the command in the original post and in the batch file was the problem for me. I removed it and the installation was completed without a problem.

    Noticed it when I saw that the file name in the sxs folder contains “netfx3” with out the dash.

    1. This post, the batch text in the post, and the included cmd file come without the dash in the feature name.
      Can you point me where you see the dash?

  26. Hi, i’ve tried everything. It doesn’t work for me. I’ve tried use your batch file but it wouldn’t let me because it says that i need to insert a dvd or a thumb drive to complete the installation. I did but it didn’t work. HELP!

  27. hi……i downloaded the .net framework 3.5 offline setup and when i run it in windows 10 os, it says it needs .net framework 3.5 to run the setup itself……….!!!!!!!!!!!!!any help plssssss………..

  28. whatever I do I get the answer that the required assembly is not installed in your system if I have the package in a disk path do I always must have it like a virtual drive I will try this way now

  29. Microsoft Windows [Version 10.0.10240]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 14003

    The referenced assembly is not installed on your system.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\system32>.

    I think I did it all ok but it keeps on refusing to install

  30. Need help.

    Found drive D
    Installing .NET Framework 3.5…

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 2

    The system cannot find the file specified.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    .NET Framework 3.5 should be installed

    Press any key to continue . . .

  31. Hi friend, thank you for you help, but in my case, y have to change some keys for recognizing my media install, because y made a windows 10 x86 & x64 usb install.
    check my changes, and sorry for my english, i´m ecuadorian…

    @echo off
    Title .NET Framework 3.5 Offline Installer
    for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist “%%I:\\x86\sources\boot.wim” set setupdrv=%%I
    if defined setupdrv (
    echo Found drive %setupdrv%
    echo Installing .NET Framework 3.5…
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\x86\sources\sxs /LimitAccess
    echo.
    echo .NET Framework 3.5 should be installed
    echo.
    ) else (
    echo No installation media found!
    echo Insert DVD or USB flash drive and run this file once again.
    echo.
    )
    pause

  32. Thanks, worked for me. Windows Features wouldn’t give the option to use local media but this worked perfectly. (Just used the one line command, didn’t try the script)

  33. You are a god among men sir. Thank you so much for this guide and information. This problem was driving me crazy and I was becoming frustrated. I wish you all the best and thank you from the bottom of my now calmed heart.

  34. Thank you, but unfortunately the script didn’t work for me even though I followed your instructions exactly, the “source files could not be found” after running the script. I am using the media (windows 10 education) from Microsoft that I used to install windows 10. Please help as I have so many apps to install that require .NET 3.5. Please see the out below after running you script.

    Thank you.

    Found drive D
    Installing .NET Framework 3.5…

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 0x800f081f

    The source files could not be found.
    Use the “Source” option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    .NET Framework 3.5 should be installed

    Press any key to continue . . .

      1. Thank you for replying Sergey. Drive D: is my CD-ROM drive. Your script is great, but I just don’t know why the source files cannot be found. Please can you help?

  35. Sorry Sergey, I have tried to paste my screenshot using both Chrome and IE11 into this comment box, but it won’t paste? How do I paste my screenshot here please?

  36. Sorry Sergey, I have taken a screenshot of the d:\sources folder, but I cannot paste it into this comment box. I have tried IE11 and Chrome to paste but neither work. How do I paste my screenshot please?

    Thank you.

  37. I just checked inside the D:\sources\sxs folder and the file inside is microsoft windows-netfx3-ondemand-package if that helps. Can’t understand if the .NET file is on the DVD in the sxs folder why cit cannot be found? Please can you help?

    1. That is really strange.
      Does that CD matched the operating system you have installed?
      The same bitness and build number?

      1. Thanks for your last comment. It solved my problem (my problem was same to this guy’s problem). My Windows is Windows 10 v1709, but i was trying to install dotNET 3.5 from Windows 10 v 1803 iso.
        Then i inserted the right disk (v1709), and i have installed dotNET 3.5 successfully. Thanks again.

  38. Thanks a lot! This cured my issue on installing Acapela Infovox 4 in newly upgraded Windows 10 Lenovo ideapad 500.

  39. for all the People with the 6801 Error, please try this before you start the Batch file in the instructions of this blog

    Open cmd prompt as Administrator and type following Code:
    >> fsutil resource setautoreset true c:\ <<

    And the try the Batch file upon. Worked for me!!!

  40. (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:F:\sources\sxs /LimitAccess

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 14003

    The referenced assembly is not installed on your system.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\system32>

    i got this error how to solved..?

  41. Following is the error on latest November build of WINDOWS 10 Pro, version 1511, 10586. I have tried everything suggested in this thread and elsewhere but to no avail. Whatever method I try it ends with error code- Error: 0x800f0922.

    Microsoft Windows [Version 10.0.10586]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>dism /online /add-package /packagepath:D:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0

    Image Version: 10.0.10586.0

    Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.10586.0
    [==========================100.0%==========================]
    An error occurred – Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800f0922

    Error: 0x800f0922

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\system32>

    1. There is a number of solutions at Microsoft Answers. Please look here:
      http://answers.microsoft.com/en-us/windows/forum/windows8_1-update/error-0x800f0922-when-installing-kb-2919355/ca99de84-a8ab-4d78-a7b2-e5dc562a418f?auth=1

      1. Thanks for your suggestion. But, as suggested in link provided by you, I do not have any VPN software installed and my system reserved partition is also 36% free. None of the suggestions at Microsoft Answers seem to work in my case.

  42. Thank you !! Saved lot of time in a country house in Córdoba, Argentina where the internet signal came barely from a cell phone… Useful 100%

  43. Man, that is so cool.
    Used the command line, rather than the batch file.
    I was a bit dubious at first, but then checked the Registry to see them all listed.
    Thank you so much, I love these labour saving tips.
    Winaero tweaker, 10/10 also.

  44. Thanks a lot.
    Save time to install net framework 3.5 on windows 10

    BUT on the newer build Microsoft has change the install.win file type to install.esd

    I just fixed the file type in your batch and it worked fine again with the new windows 10 build.

  45. Awesome. I tried the batch and didn’t work but the first method worked like a charm.
    I used a .iso of W10 mounted on daemon tools.
    Thanks a lot my friend!
    Some people know tha way of the light and share it. I take out my hat on that.

  46. So after a little fiddling this is what my .bat file looks like since I had the same issue some others had.

    @echo off
    Title .NET Framework 3.5 Offline Installer
    for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist “%%I:\\x64\sources\install.wim” set setupdrv=%%I
    if defined setupdrv (
    echo Found drive %setupdrv%
    echo Installing .NET Framework 3.5…
    dism /online /add-package /packagepath:%setupdrv%:\x64\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab
    echo.
    echo .NET Framework 3.5 should be installed
    echo.
    ) else (
    echo No installation media found!
    echo Insert DVD or USB flash drive and run this file once again.
    echo.
    )
    pause

    if you do not have an iso where you can select between x32 and x 64 then here

    @echo off
    Title .NET Framework 3.5 Offline Installer
    for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist “%%I:\\sources\install.wim” set setupdrv=%%I
    if defined setupdrv (
    echo Found drive %setupdrv%
    echo Installing .NET Framework 3.5…
    dism /online /add-package /packagepath:%setupdrv%:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab
    echo.
    echo .NET Framework 3.5 should be installed
    echo.
    ) else (
    echo No installation media found!
    echo Insert DVD or USB flash drive and run this file once again.
    echo.
    )
    pause

    Here’s to hoping I helped one person out there somewhere.

  47. Thank you for going into trouble of providing this detailed solution for this annoying problem.

    Regards from Pakistan,
    Manzar.

  48. Microsoft Windows [Version 10.0.10586]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\WINDOWS\system32>Dism /online /enable-feature /featurename:NetFX3 \Source:F:/sources\sxs /LimitAccess

    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0

    Image Version: 10.0.10586.0

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 2

    The system cannot find the file specified.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    Hopefully this thread is dead but any help welcome

    1. this worked for me
      dism /online /add-package /packagepath:F:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

  49. It keeps showing this error. HELP

    C:\Windows\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 14003

    The referenced assembly is not installed on your system.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

  50. I would kiss you if I could… No homo. But seriously, thanks for this I’m not getting Internet for a month and this helped tremendously

  51. For whatever reason this does not work. Put flash drive in and ran batch file on windows 10 64 bit latest updates as of today, a command prompt window opens and it says press any key to continue and does nothing, if I hit enter again after that, the window just closes and goes back out to the desktop. Seems to work for some, and others not so much.

  52. I bought the “Full” version of Windows 10, which contains both 32 bit and 64 bit versions – I have the 64 bit version installed. When accessing the installation flash drive in the elevated command prompt, I had to add “\x64” in the source location string. Otherwise, looks all good!

    Thanks for posting – Win 10 seems to be very sloooooow when doing updates from internet – and frequently comes up with errors indicating ‘not found’. This worked great.

  53. I tried this script, and I keep getting no installation media found. Yet the WIn10CD is in the D drive.

    I can run the command manually the Dism one, but I would like the script to work, cause more and more win10 machines are popping out of Dells arse and into the factory.

  54. Thanxx.. its working Awesome.. but how u create a batch file.. iwann also create my batch file i download your batch file but did not understand how to create batch file…

  55. dism /online /add-package /packagepath:D:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab
    this just worked for me with the renaming of the instalation frive.

  56. Why does this message appear, rather than successful install?

    Error: 17
    The system cannot move the file to a different disk drive
    Show/Hide

  57. It shows :
    Error:23
    data error (cyclic redundancy check).
    The DISM file can be found at C:\Windows\Logs\DISM\dism.log
    .NET Framework 3.5 should be installed

    plzz help bro

  58. Man…u the best ever……keep up the good job…I just gst fifa working after so many work…1s again thx

  59. Thanks buddy it works great great great great great great great great great great great great great great great great great great great great great for me …
    You have made my day!!!!!!!!!!!!!!!!!!!!!!!!!

  60. it show error again.
    please help me!!!!!!!!!! :((

    Found drive G
    Installing .NET Framework 3.5…

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 0x800f081f

    The source files could not be found.
    Use the “Source” option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    .NET Framework 3.5 should be installed

  61. Found drive H
    Installing .NET Framework 3.5…

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384

    Image Version: 10.0.10240.16384

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 0x800f0922

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    .NET Framework 3.5 should be installed

    Press any key to continue . . .

    ive tried everything but nothing seems to fix this

  62. Thanks a lot boss… U r the man… Any way cmd using cmd prompt didn’t end well for me… It displayed an error 80 but somehow ur batch file helped me a lot. :)

  63. I just copied the microsoft-windows-netfx3-ondemand-package.cab file to old C:\Windows\Option\CABS and add remove features the old fashioned way still work

  64. I tried the method you mentioned in this page. But it showed that windows is updating and next windows failed to updated and rolled back the action and nothing happened and I can’t enable .net 3.5

  65. Hi. I’ve used your file. But I can’t make it out. Initially it showed that windows is updated, next it showed that windows can’t update and rolled back the action.

  66. here is my problem:

    C:\WINDOWS\system32>dism /online /add-package /packagepath:F:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0

    Image Version: 10.0.10586.0

    Processing 1 of 1 – Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.10586.0
    [===== 10.1% ] An error occurred – Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800706be

    Error: 1726

    Zdalne wywołanie procedury nie powiodło się.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    C:\WINDOWS\system32>Dism /Online /Cleanup-Image /RestoreHealth

    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0

    Image Version: 10.0.10586.0

    Error: 1726

    Zdalne wywołanie procedury nie powiodło się.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    C:\WINDOWS\system32>

    I am just after moving from W8.1 to W10
    Help me please
    *Zdalne wywołanie procedury nie powiodło się. means: Remote procedue call failed

  67. I would just like to say thank you so much!

    To say i spent 20 minutes with a microsoft employee, who couldnt fix it and tried to charge me $99 minimum to fix it, just goes to show how useless they are.

  68. First disable 4.6 and then install using above command.Later re enable 4.6. Worked on windows 10 otherwise error shown error 0x800F081F.

  69. plz i installed the windows 10 online and I dnt have d hardware of d setup i.e d disk
    if i try running the batch file, it keeps telling me to insert d disk or d flash and i dnt have d raw file of d set up nd z hindering me from installing d frame work even with d program cuz it keeps showing me error

  70. plz i installed the windows 10 online and I dnt have d hardware of d setup i.e d disk
    if i try running the batch file, it keeps telling me to insert d disk or d flash and i dnt have d raw file of d set up nd z hindering me from installing d frame work even with d program cuz it keeps showing me error
    plz help me out

  71. Hi Dear,

    Thanks so much for the file. Previously I tried many methods manually but wont work. This file worked instantly. .NET 3.5 installed on my Windows 10. Thanks a lot mate.

    Nikhil Kadi

  72. I had to change

    “%%I:\\sources\install.wim”

    to

    “%%I:\\sources\install.esd”

    and then it worked for me.

    ( I got the Win 10 ISO using the Windows 10 Download Tool. ( http://go.microsoft.com/fwlink/?LinkId=691209 ) Not sure what will happen with that Tool after the before July 29 2016 “Free Win 10 Update” program expires )

    Thanks for the .bat script.

    1. If you have trouble with the batch file telling you “Insert DVD or USB flash drive and run this file once again.”

      You have to change the line 3 from “%%I:\\sources\install.wim” to “%%I:\\sources\boot.wim”

      My Windows ISO did not have a “install.wim” in that directory so the script failed. Once I change the script to a file that actually exists it worked without a problem.

      This is most ikely a Microsoft issue not the script writers issue.

  73. Hi Sergey,

    My ideia is change de iso image to make this feature enable on windows installation, can you tell me if it’s possible?

    Thanks in advanced.

    Marcelo “Sushi”

  74. Hi Sergey and all,

    I have two Dell Laptops I want to run an App which requires .NET Framework 3.5. If I install the driver (The app communicates with a USB connected box) if prompts me to install .NET Framework 3.5.

    Both computers are fresh, registered Windows 10 installs with no third party apps.

    Machine A when prompted downloaded and installed .NET 3.5 and the app runs reliably.

    Machine B never finishes downloading .NET, so I tried add/remove windows components and had to resort to the method here in the article which did successfully install .NET 3.5.

    My problem is: The app crashes every 5 minutes on Machine B, while it runs reliably on machine A.

    The app is from the same CD and connected to the same box.

    Can you think of any .NET Framework tips? Should one install .NET Framework 3.5 SP1?

    I will contact the app mfg, but not their bug…

    Thanks,
    Mike

  75. Hi Sergey Tkachenko, for you to have a lot of comments here truly shows how a lot of us around the are for your work and efforts; so am I too. You just saved me a lot of stress since I’m not a pro in computer. I just want to say that your method worked for me on my win 10 -10240. Though I later got a .exe portable file from another web site which uses same CMD command but with a user interface so that newbies can select the drive letter for themselves. All the same thanks for being a solution to our generation. (From my little home here in Africa)

  76. Another extremely grateful guy here, and likewise the company I work closely with.
    Thank you, thank you, thank you!
    George

  77. Hi Sergey,

    I tried this method and I am getting the following error.

    Error: 6800

    The function attempted to use a name that is reserved for use by another transaction.

    Do you have a workaround for this problem?

    1. I got it. You batch file worked. However I needed to remove the drive identification part and hardcode the drive letter.

      Thanks

  78. Great article sir!
    It worked almost perfectly. I did not have the Windows 10 media as I upgraded from Windows 7.
    However, I downloaded a utility from the Microsoft website called “MediaCreationTool.exe” and created an ISO file for my platform. It took few hours to download the Windows 10 installation files and create the actual ISO file.
    I tried the script, but it did not work at first trial because for some reason the file “install.wim” did not exist in the final ISO.
    So I changed it to check for the “install.esd” file instead, which existed, and it worked perfectly and as expected!!

    This minor problem maybe due to the fact that I had to create a “personalized” version of Windows 10.

    Great work though. I like command-line stuff :)

  79. I don’t have my Windows 10 CD anymore.. :( Is it possible to just download the package? And extract it from there? Thank you for your help!

  80. I can’t believe I finally managed to solve this problem thanks to you! I tried so many different things to install this .NET Framework… none of them worked, and I badly needed the 3.5 version in order to install an important software. Your guide was the only solution and it was also very easy to follow for a clumsy user like me… thank you so much!

  81. Installation via Command Prompt was very quick. Thanks for that great tip. This article saved me lots of headaches and I could get to work finally. Winaero is one of the best sites for Windows related stuff.

  82. Thanks alot, worked excellent on Win 10 v1607 Anniversary Edition. Control Panel-add windows features still wanted the internet, this worked offline.

  83. Hi! So i’ve tried your method with the batch file and without it, but in both the last thing the CMD window shows is Image version 10… , after that it does nothing, nor does it show anything else. A reply would be much appreciated!

  84. Otlichno! Spacibo bolshoe, Sergey – really helped with installing SQL Server 2014 (needed .Net framework 3.5 to install SQL…) on a VM with no Internet access.

  85. Superb work I really appreciate. Dear did you prepared any script for windows 8.1 . I really liked your work and I want or windows 8.1 also . plz help me

  86. Not working for me, i tried with your batch file & manual command. but it does not shows any messages.
    waiting for more than 20 minutes no response
    see below screenshot
    https://gyazo.com/2ede1285e9fce068256670f928d7c8e9

  87. Thank you so much. I have lost hours trying to get this done. Btw, use these files if you don’t have your Windows 10 copy
    https://dytoshare.us/2015/07/cara-install-net-framework-35-di.html

  88. Yo,Thanks For sharing this article it really works !!
    ?Can i use this in a youtube tutorial please ?

  89. You are awesome. I try everything and finally its worked .bat file is the best solution. Again thx man. Love you

  90. Thank you! After trying to install the feature on a metered connection, it failed to complete and I haven’t been able to install it. So when I got home, I downloaded the 1703 ISO for Windows 10 and followed your instructions. Worked perfectly. Thank you.

  91. thanks a lot.
    The only think that worked for me.
    I have try everything else that I have seen in internet forums
    and even in Microsoft’s cite, but nothing worked.
    thanks a lot again. YOU SAVED ME

  92. Thank you a lot. note that i had to change a little to the script, i downloaded 8.1 pro iso and just mounted it, it had no install.wim so i changed it to install.exe, and it worked like charm.

  93. I was trying to install it from the iso file and after showing enabling features 100% , it gives an error “The source files could not be found” with error code Error: 0x800f081f. Please help…

    1. Let’s figure which ISO do you have.
      1. Do you have sources\install.wim file?
      2. Do you have these folders:
      x86\sources\
      x64\sources\
      3. Maybe you have the file sources\install.esd?

  94. Hi Sergey

    Thanks for batch file. In case someone install x64 bit version of Windows like me! Then s/he may get below error message:
    **************************
    Error: 11

    You cannot service a running 64-bit operating system with a 32-bit version of DISM.
    Please use the version of DISM that corresponds to your computer’s architecture.
    ***********************
    To fix that I suggest to change your line 7 from this:
    Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess

    to this one (add this “%setupdrv%:\sources\” at start of line):
    %setupdrv%:\sources\Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess

    It will use Dism.exe from image with same version (x86 or x64) of installed Windows. This problem come from “Path” variable in Windows. in must cases only this path “C:\Windows\System32” exist in Path variable and not “C:\Windows\SysWOW64” and both contain same Dism.exe filename but with different compiled versions for x86 & x64.

    Thanks and Good Luck
    MRK

  95. I had to change the file search for to determine which drive to use to look for install.esd instead of install.wim, I think the structure may have changed. Did work though, thanks.

  96. Also use this command line from Command Prompt or PowerShell as an Administrator, in case it doesn’t work with the command line provided in this post. The drive letter must be changed where the Windows 10 installer is located. This is an example:

    32 or 64 bit:
    DISM.exe /Online /Add-Package /PackagePath:”C:%sourcessxsmicrosoft-windows-netfx3-ondemand-package.cab”

    Check that the installation and activation of. NET Framework 3.5 has been a success, using the following command line:
    From PowerShell as administrator:

    (Get-WindowsOptionalFeature -FeatureName NetFx3 -Online)
    From Command Prompt as administrator:
    PowerShell.exe Get-WindowsOptionalFeature -FeatureName NetFx3 -Online

    Note: This enables the execution of unsigned scripts in Powershell:
    (Set-ExecutionPolicy UnRestricted)

    You can choose to simultaneously press the “Windows+R”keys: copy and paste any of the following commands to check their activation:

    %SystemRoot%System32OptionalFeatures.exe
    or
    %windir%System32rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2

    As you can see in the “Windows Features” window, the following box should be shaded if enabled:”. NET Framework 3.5 (Includes. NET 2.0 and 3.0″)

    Ready!!!!
    * Here are some output screenshoots:
    https://imgur.com/a/FchGJ

  97. Also use this command line from Command Prompt or PowerShell as an Administrator, in case it doesn’t work with the command line provided in this post. The drive letter must be changed where the Windows 10 installer is located. This is an example:

    32 or 64 bit:
    DISM.exe /Online /Add-Package /PackagePath:”C:\%\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab”

    Check that the installation and activation of. NET Framework 3.5 has been a success, using the following command line:
    From PowerShell as administrator:

    (Get-WindowsOptionalFeature -FeatureName NetFx3 -Online)
    From Command Prompt as administrator:
    PowerShell.exe Get-WindowsOptionalFeature -FeatureName NetFx3 -Online

    Note: This enables the execution of unsigned scripts in Powershell:
    (Set-ExecutionPolicy UnRestricted)

    You can choose to simultaneously press the “Windows+R”keys: copy and paste any of the following commands to check their activation:

    %SystemRoot%\System32\OptionalFeatures.exe
    or
    %windir%\System32\rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2

    As you can see in the “Windows Features” window, the following box should be shaded if enabled:”. NET Framework 3.5 (Includes. NET 2.0 and 3.0″)

    Ready!!!!
    * Here are some output screenshoots:
    imgur. com/a/FchGJ

  98. Also use this command line from Command Prompt or PowerShell as an Administrator, in case it doesn’t work with the command line provided in this post. The drive letter must be changed where the Windows 10 installer is located. This is an example:

    32 or 64 bit:
    DISM.exe /Online /Add-Package /PackagePath:”D:\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab”

    Check that the installation and activation of. NET Framework 3.5 has been a success, using the following command line:
    From PowerShell as administrator:

    (Get-WindowsOptionalFeature -FeatureName NetFx3 -Online)
    From Command Prompt as administrator:
    PowerShell.exe Get-WindowsOptionalFeature -FeatureName NetFx3 -Online

    Note: This enables the execution of unsigned scripts in Powershell:
    (Set-ExecutionPolicy UnRestricted)

    You can choose to simultaneously press the “Windows+R”keys: copy and paste any of the following commands to check their activation:

    %SystemRoot%\System32\OptionalFeatures.exe
    or
    %windir%\System32\rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2

    As you can see in the “Windows Features” window, the following box should be shaded if enabled:”. NET Framework 3.5 (Includes. NET 2.0 and 3.0″)

    Ready!!!!
    * Here are some output screenshoots:
    imgur. com/a/FchGJ

  99. Bravo!!! that is readlly working fine, it fail in one of my pc but it was CD rom issue, so this patch is perfect. Usually win 10 comes by default .NET 4 and programs created in lower version willnot work so you need to install it and the way shown above is very nice, just run the above patch should run successfully.

  100. Hi. Great work. Thanks!! Only thing is you do not need the whole bootable drive. This works if u only have the sxs folder with NetFX3. You can just copy that and paste it anywhere on PC & this still works.

  101. On an MS downloaded original USB media, line 3 in your batch should be \install.esd
    If you have a .wim then you have decrypted and unpacked the original MS installation package.

  102. whatever I do I get the answer that the required assembly is not installed in your system if I have the package in a disk path do I always must have it like a virtual drive I will try this way now

  103. Hi Sergey,
    unfortunately, it did not work for me.
    it found my Drive E,
    Installing .NET Framework 3.5
    completed to 100%
    ‘Error 2’ was on the next line followed by ‘the system cannot fond the file specified’
    then ‘.NET Framework should be installed
    any ideas please?

    Windows 10 Home
    Image Version: 10.0.17134.112

  104. As with every fix, this is the error I get.

    Microsoft Windows [Version 10.0.17134.81]
    (c) 2018 Microsoft Corporation. All rights reserved.

    C:\WINDOWS\system32>Dism /online /enable-feature /featurename:NetFX3 /All /Source:I:\sources\sxs /LimitAccess

    Deployment Image Servicing and Management tool
    Version: 10.0.17134.1

    Image Version: 10.0.17134.81

    Enabling feature(s)
    [==========================100.0%==========================]

    Error: 6801

    Transaction support within the specified resource manager is not started or was shut down due to an error.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

  105. On 3 separate machines updated to Windows 10 1803 to the current July 2018 updates I was not able to install Microsoft .NET 3.5 from the Turn on Windows Features as it wanted to go to Windows Update to download the install files.

    We had IE 11 set as the default browser, once Edge was set as the default browser Windows Updates applied.

  106. Let me correct myself, it was not setting Edge as the default browser that resolved my issue, although I would not be surprised if Microsoft got to that point eventually since they are moving away from IE 11.

    The issue was resolve by uninstalling Windows Update KB4345421.
    When removed all 3 machines did update event with IE 11 as default browser on one of them.

    https://support.microsoft.com/en-us/help/4345421/windows-10-update-kb4345421

  107. Not working on brand new clean install of Windows 10 1803. tried every method out there and they all fail at 35%

    MS cant get the simplest things right.

  108. One of our apps still demands .NET 2.0 and we had just given one of the users a new Win 10 x64 machine. Long story short is that this app had to be re-installed for the user, failed because this time it could not find .NET 2.0 and my notes from installing .NET 3.5 on WIn 8.1 worked right up to the point where Windows tried to download .NET 3.5 and failed. I hunted down the Win 10 DVD that came with those workstations, copied your command and installed .NET 3.5 in a few minutes. Your guide laid out just what I needed to do. Kia kaha!

  109. Hello Sir, I downloaded the dot net framework 3.5 offline setups and when I run in OS on Windows 10 then it says it needs dot net framework 3.5 to run the setup itself. Please need your help.

  110. Unfortunately does not work for me. Have Win 10 version 1709.

    I ran dism /online /add-package /packagepath:D:\Win10_1709\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab

    and get the following response:
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15

    Image Version: 10.0.16299.847

    Processing 1 of 1 –

    at which point it just hangs and nothing else happens.

    DISM tool and image version are slightly different as you can see but I’m 99.9% certain it’s the same version I installed from.

    Any suggestions gratefully welcomed.

  111. Doesn’t work @ WIN10_PRO Build 1903
    MS slowly gets a simple crappy peace of …. .

    C:\Windows\system32>dism /online /enable-feature /featurename:netfx3 /all /source:d:\sxs\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab /limitaccess

    Tool zur Imageverwaltung für die Bereitstellung
    Version: 10.0.18362.1

    Abbildversion: 10.0.18362.295

    Features werden aktiviert
    [==========================100.0%==========================]

    Fehler: 0x800f0922

    DISM-Fehler: Es wurde kein Vorgang ausgeführt.
    Weitere Informationen finden Sie in der Protokolldatei.

    Die DISM-Protokolldatei befindet sich unter “C:\Windows\Logs\DISM\dism.log”.

    C:\Windows\system32>

    1. /LimitAccess: Tells DISM to not check Windows Update or Windows Server Update Services for the capability source files.

  112. I opened an elevated command prompt
    I pasted Dism /online /enable-feature /featurename:NetFX3 /All /Source:F:\sources\sxs /LimitAccess
    F is my usb drive with WIN10
    I got error: 87
    The limitacces option is not recognized in this context.

    Image version:10.0.18362.329
    What did I do wrong??

      1. I did some more reading and did this:
        Change your Group Policy
        RUN gpedit.msc Computer Configuration > Administrative Templates > System. In the right pane, double click on Specify settings for optional component installation and component repair. changed to Enabled.
        Then tried your scrip again . No errors but Net Framework would not install.
        I just got enabling features and then nothing no percentage install or anything.
        I wonder if the install.esd file has something to do with this.

  113. batch file does not work with Windows 10 build 19041 (20H1)

    always says “No installation media found! Insert DVD or USB flash drive and run this file once again. ” when the 20H1 install usb flash drive is already connected

  114. @ EP
    Open the batch file and try replacing install.wim with install.esd
    This may fix your problem.
    I still can’t install NF3.5 but this may help you.

  115. Dude seriously thank you so much! I needed this for so many things, work and leisure. I did have the ‘source files not found’ problem, but then looking at the comments was able to 1) modify the batch file to look for install.esd instead of .wim, 2) look around for a w10 release with the same number as mine, and it seems to have worked.

  116. Script works with Win 10 x64 Home Build 2004!
    A Billion Thanks! Good Work.
    I’m POed at Micro$oft for not making the installer work in control pannel.

    I’ve wasted 6 hours because of their BS.

    I need .NET 3.5 to install a firmware patch to fix broken equipment.

    PS: Ditch registration to write comments.

  117. Normal .Net Framework 3.5 installing not worked for me but your solution is fixed my problem. Thank you so much.

  118. Thank your very much, it saves lots of time and tons of Internet data/bandwidth.
    Thanks for great advise

  119. Thanks a ton!!! I spent 5 or so hours installing, updating, fixing this thing, and nothing worked. Once I followed your advice and boom it worked. You are appreciated.)

Leave a Reply

Your email address will not be published. Required fields are marked *