Repair Install Windows 10 with an In-place Upgrade  


  1. Posts : 51
    Windows 10 Pro 64
       #1070

    dalchina said:
    - that's what's discussed in a long string of posts above where people have been working on just that... that's the latest...

    Please confirm that you didn't also have this problem with earlier major builds.
    I don't know, last time was in 2016.

    - - - Updated - - -

    Ztruker said:
    Hi @Ztruker,
    Just finishished my in-place upgrade from 20H2 to 20H2 without run your .bat file.
    Found the solution, very simple, in Windows Central (@ Page not found. Search Results for 'windows 10 october 2020 update common problems fixes': | Windows Central
    Solution:
    The tool works as expected when upgrading version 2004, but if you try to use the tool to reinstall version 20H2, you'll only be able to choose the "Nothing" option, and the "Keep personal files and apps" and "Keep personal files" options will be grayed out.
    According to reports from users (via Reddit), this problems has been around for several previews, and you can bypass this issue by uninstalling the enablement package. Here's how:

    1. Open Settings.
    2. Click on Update & Security.
    3. Click on View update history.
      Source: Windows Central
    4. Click on Uninstall updates.
      Source: Windows Central
    5. Select the Feature Update to Windows 10 20H2 via Enablement Package item.
      Source: Windows Central
    6. Click the Uninstall button.
    7. Click the Yes button.

    Once the package is removed, you can use the Media Creation Tool to reinstall Windows 10, keeping your files and apps.
      My Computer


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #1071

    Jorge Martins said:
    I don't know, last time was in 2016.

    - - - Updated - - -



    Hi @Ztruker,
    Just finishished my in-place upgrade from 20H2 to 20H2 without run your .bat file.
    Found the solution, very simple, in Windows Central (@ Page not found. Search Results for 'windows 10 october 2020 update common problems fixes': | Windows Central
    Solution:
    The tool works as expected when upgrading version 2004, but if you try to use the tool to reinstall version 20H2, you'll only be able to choose the "Nothing" option, and the "Keep personal files and apps" and "Keep personal files" options will be grayed out.
    According to reports from users (via Reddit), this problems has been around for several previews, and you can bypass this issue by uninstalling the enablement package. Here's how:

    1. Open [FONT="]Settings[/FONT].
    2. Click on [FONT="]Update & Security[/FONT].
    3. Click on [FONT="]View update history[/FONT].
      Source: Windows Central
    4. Click on [FONT="]Uninstall updates[/FONT].
      Source: Windows Central
    5. Select the [FONT="]Feature Update to Windows 10 20H2 via Enablement Package[/FONT] item.
      Source: Windows Central
    6. Click the [FONT="]Uninstall[/FONT] button.
    7. Click the Yes button.

    Once the package is removed, you can use the Media Creation Tool to reinstall Windows 10, keeping your files and apps.
    @Jorge Martins,
    Yes, the very simple solution is well known and does not work for people who did not go from 20H1 to 20H2 via Enablement KB. If someone installed using the 20H2 ISO, they could not do a repair install without the registry modification which many here contributed to finding and working on.
    Last edited by steve108; 11 Nov 2020 at 22:58.
      My Computer


  3. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
       #1072

    My little batch file seems a lot simpler than that.

    1. Download zip
    2. Extract contents
    3. Run batch file
      My Computers


  4. Posts : 69,294
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #1073

    UPDATE 11/12: Fixes the in-place upgrade (repair install) issue.

    KB4586853 CU Windows 10 v2004 build 19041.661 and v20H2 19042.661
      My Computers


  5. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
       #1074

    Fantastic. @NavyLCDR tested it already and said it does indeed fix the Repair Install problem.

    Thanks Shawn and NavyLCDR.
      My Computers


  6. HDL
    Posts : 103
    Windows 10
       #1075

    Ztruker said:
    The previous reg file did not change the ownership or permissions of the registry key. This batch file does, then applies the reg file so it does it all.

    Here is a zip file that includes SETACL.EXE. Unzip to any folder, double click on Allow_20H2_Repair_Install_Keep_Everything.bat and it should work.

    Attachment 305638

    And the final batch file:

    Code:
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Written by Ztruker (TenForums.com/members/ztruker.html) 11/10/2020
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    @echo off
    ::
    :: Restart as Admin if not already running as Admin
    ::
    (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
    ::
    :: First backup existing key
    ::
    (REG EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" %temp%\EditionVersion.Backup.reg /y) || Goto Error
    ::
    :: Figure out where we are running from, change directory to there
    ::
    SET ScriptDirectory=%~dp0
    Set ScriptName=%~n0
    Set ScriptExt=%~x0
    CD /D %ScriptDirectory%
    SET "REGScript=%ScriptDirectory%%ScriptName%.REG"
    ::
    :: Use SETACL from Helge Klein to change ownership of key to administrators and give them full control
    :: https://helgeklein.com/setacl/documentation/command-line-version-setacl-exe/
    ::
    (SetACL.exe -on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" -ot reg -actn setowner -ownr "n:Administrators" -rec Yes) || Goto Error
    (SetACL.exe -on "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" -ot reg -actn ace -ace "n:Administrators;p:full" -rec Yes) || Goto Error
    Echo.
    Echo Key now owned by Administrators with Full permissions.
    ::
    :: Reg file is below. It is written to the %temp% directory as
    :: Allow_20H2_Repair_Install_Keep_Everything.reg 
    :: then imported into the registry using the REG IMPORT command.
    ::
    (Echo Windows Registry Editor Version 5.00
    Echo.
    Echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion]
    Echo "EditionBuildBranch"="vb_release"
    Echo "EditionBuildLab"="19041.vb_release.19041.508"
    Echo "EditionBuildLabEx"="19041.1.amd64fre.vb_release.19041.508"
    Echo "EditionBuildNumber"=dword:00004a61
    Echo "EditionBuildQfe"=dword:000001fc) > "%REGScript%"
    ::
    :: Add entries to registry.
    ::
    Echo.
    Echo Updating registry
    (REG IMPORT %REGScript%) || Goto Error
    Echo.
    Echo Registry key updated from:
    type %temp%\EditionVersion.Backup.reg
    Echo.
    Echo to
    Echo.
    type %REGScript%
    Echo.
    Echo If needed, a backup of the registry key is in %temp%\EditionVersion.Backup.reg
    Goto Complete
    ::
    :: Come here on any error
    ::
    :Error
    Echo An error occurred. Save the command prompt window text to examine.
    Echo If needed, a backup of the registry key is in %temp%\EditionVersion.Backup.reg
    Echo.
    Echo ACL for key follows:
    eCHO.
    Powershell Get-Acl -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion' ^| Format-List
    ::
    :: Only exit from script. Require user to press Enter.
    ::
    :Complete
    pause
    Because I do not understand all that is mentioned here and the 1 post above it, may I ask a question. I have to run a repair on a Windows 10 version 20H2 computer and I do want to keep my files and apps. That option is not available to me at present. Am I understanding what I quoted above, that all I have to do is click that SETACL.EXE file and it will start and run the repair? Or once that bat file is run do I then have to try to run a repair from the version 20H2 ISO file I have.

    Thank you.
      My Computer


  7. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #1076

    HDL said:
    Because I do not understand all that is mentioned here and the 1 post above it, may I ask a question. I have to run a repair on a Windows 10 version 20H2 computer and I do want to keep my files and apps. That option is not available to me at present. Am I understanding what I quoted above, that all I have to do is click that SETACL.EXE file and it will start and run the repair? Or once that bat file is run do I then have to try to run a repair from the version 20H2 ISO file I have.

    Thank you.
    You have to run the bat file before trying the repair.

    - - - Updated - - -

    Have you tried installing this KB first which fixes the need to run that .bat file: KB4586853 CU Windows 10 v2004 build 19041.661 and v20H2 19042.661

    That KB fails to install for some currently, so keep that in mind. In that case you can just run the .bat file.
      My Computer


  8. HDL
    Posts : 103
    Windows 10
       #1077

    steve108 said:
    You have to run the bat file before trying the repair.

    - - - Updated - - -

    Have you tried installing this KB first which fixes the need to run that .bat file: KB4586853 CU Windows 10 v2004 build 19041.661 and v20H2 19042.661

    That KB fails to install for some currently, so keep that in mind. In that case you can just run the .bat file.
    I am not sure that KB would work for me since my version of Win 10 20H2 is OS build 19042.630).
      My Computer


  9. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #1078

    HDL said:
    I am not sure that KB would work for me since my version of Win 10 20H2 is OS build 19042.630).
    Ok, just run the proven bat then.
      My Computer


  10. Posts : 18,430
    Windows 11 Pro
       #1079

    HDL said:
    I am not sure that KB would work for me since my version of Win 10 20H2 is OS build 19042.630).
    It should take you from 19042.630 to 19042.661
      My Computer


 

Tutorial Categories

Repair Install Windows 10 with an In-place Upgrade Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:32.
Find Us




Windows 10 Forums