Repair Install Windows 10 with an In-place Upgrade  


  1. Posts : 7,607
    Windows 10 Home 20H2
       #1020

    Ztruker said:
    You have to make the Permission/Ownership change before running it.
    I've found several Powershell scripts that will do it but they are too complicated for me to post right now.
    If you are referring to the following problem, I can write a simple script to get permission via PowerRun, a third-party tool which I have used to set connections as metered via a registry hack.
    Repair Install Windows 10 with an In-place Upgrade-no-sufficient-permission.jpg
      My Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1021

    I want to do it without a 3rd party tool. I've found several Powershell solutions but they are fairly complex so I'll hold off for now.

    The key is in the link @Bree posted above: Known and Resolved issues for Windows 10 version 20H2 - post #159
      My Computers


  3. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #1022

    Ztruker said:
    they are fairly complex so I'll hold off for now....

    Well, at least until after Patch Tuesday. To fix this properly, there are two things MS needs to do.
    • correct the installed registry, this could easily be done by a CU.
    • Issue an updated ISO that doesn't install the wrong registry values in the first place.


    If we are amazingly lucky this could all be done next Tuesday.
      My Computers


  4. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1023

    It can be done with subinacl and a batch file. I have it mostly done but then found out subinacl is no longer available from Microsoft, so looks like I can use regini.exe except I don't understand yet how to use it. Hopefully sometime today. This is what I have so far if anyone is interested. It's not working as subinacl is not working but the idea is there.

    Need to switch to regini.exe which is built into Windows 10 (C:\Windows\system32). Just need to figure out how to use it

    Code:
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Written by Ztruker @ Tenforumes.com 11/08/2020
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    @echo on
    ::
    :: 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
    ::
    :: Create Allow_20H2_Repair_Install_Keep_Everything.reg in %temp% directory
    ::
    SET ScriptDirectory=%~dp0
    Set ScriptName=%~n0
    Set ScriptExt=%~x0
    SET "REGScript=%ScriptDirectory%%ScriptName%.REG"
    MORE /E +55 "%ScriptName%%ScriptExt%" > "%REGScript%"
    ::
    :: Make Administrators owner of key with full permissions
    ::
    SUBINACL /keyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" /setowner=administrators /grant=administrators=f || Goto Error
    Echo.
    Echo Key now owned by Administrators with Full permissions.
    ::
    :: Add entries to registry.
    ::
    Echo Updating registry
    (REG IMPORT %REGScript%) || Goto Error
    Echo.
    Echo Registry key updated from:
    type %temp%\EditionVersion.Backup.reg
    Echo.
    Echo to
    Echo.
    Echo type %REGScript%
    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
    ::
    :: Only exit from script. Require user to press Enter to close window
    ::
    :Complete
    pause
    Exit
    ::
    :: Reg file is below. It is written to the %temp% directoryu as :: :: Allow_20H2_Repair_Install_Keep_Everything.reg then imported
    :: into the registry using the REG IMPORT command.
    
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion]
    "EditionBuildBranch"="vb_release"
    "EditionBuildLab"="19041.vb_release.19041.508"
    "EditionBuildLabEx"="19041.1.amd64fre.vb_release.19041.508"
    "EditionBuildNumber"=dword:00004a61
    "EditionBuildQfe"=dword:000001fc
      My Computers


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1024

    Ztruker said:
    It can be done with subinacl and a batch file. I have it mostly done but then found out subinacl is no longer available from Microsoft, so looks like I can use regini.exe except I don't understand yet how to use it. Hopefully sometime today. This is what I have so far if anyone is interested. It's not working as subinacl is not working but the idea is there.

    Need to switch to regini.exe which is built into Windows 10 (C:\Windows\system32). Just need to figure out how to use it

    Code:
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Written by Ztruker @ Tenforumes.com 11/08/2020
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    @echo on
    ::
    :: 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
    ::
    :: Create Allow_20H2_Repair_Install_Keep_Everything.reg in %temp% directory
    ::
    SET ScriptDirectory=%~dp0
    Set ScriptName=%~n0
    Set ScriptExt=%~x0
    SET "REGScript=%ScriptDirectory%%ScriptName%.REG"
    MORE /E +60 "%ScriptName%%ScriptExt%" > "%REGScript%"
    ::
    :: Make Administrators owner of key with full permissions
    ::
    SUBINACL /keyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" /setowner=administrators /grant=administrators=f || Goto Error
    Echo.
    Echo Key now owned by Administrators with Full permissions.
    ::
    :: Add entries to registry.
    ::
    Echo Updating registry
    (REG IMPORT %REGScript%) || Goto Error
    Echo.
    Echo Registry key updated from:
    type %temp%\EditionVersion.Backup.reg
    Echo.
    Echo to
    Echo.
    Echo type %REGScript%
    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
    ::
    :: Only exit from script. Require user to press Enter to close window
    ::
    :Complete
    pause
    Exit
    ::
    :: Reg file is below. It is written to the %temp% directoryu as :: :: Allow_20H2_Repair_Install_Keep_Everything.reg then imported
    :: into the registry using the REG IMPORT command.
    
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion]
    "EditionBuildBranch"="vb_release"
    "EditionBuildLab"="19041.vb_release.19041.508"
    "EditionBuildLabEx"="19041.1.amd64fre.vb_release.19041.508"
    "EditionBuildNumber"=dword:00004a61
    "EditionBuildQfe"=dword:000001fc
    Okay, here is the new one using regini.exe. Still not working but getting closer:

    Code:
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Written by Ztruker @ Tenforumes.com 11/08/2020
    :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    @echo on
    ::
    :: 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
    ::
    :: Create input REGini.Input.txt file in %temp% directory then run regini.exe with the file as input.
    :: Make Administrators owner of key with full permissio
    ::
    Echo \Registry\machine\software\Microsoft\Windows NT\CurrentVersion\EditionVersion ^[1 6 9 17^] > %temp%\REGini.Input.txt
    ::
    :: Bail out if error
    ::
    (regini.exe %temp%\REGini.Input.txt) || Goto Error
    Echo.
    Echo Key now owned by Administrators with Full permissions.
    ::
    :: Reg file is below. It is written to the %temp% directoryu as 
    :: Allow_20H2_Repair_Install_Keep_Everything.reg then imported
    :: into the registry using the REG IMPORT command.
    ::
    SET ScriptDirectory=%~dp0
    Set ScriptName=%~n0
    Set ScriptExt=%~x0
    SET "REGScript=%ScriptDirectory%%ScriptName%.REG"
    (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.
    Echo type %REGScript%
    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
    ::
    :: Only exit from script. Require user to press Enter to close window
    ::
    :Complete
    pause
    Last edited by Ztruker; 08 Nov 2020 at 15:47.
      My Computers


  6. Posts : 7
    windows 10 home,64-bit
       #1025

    So happy to have found this forum.
    I am running Windows 10 home, version 1909 on a SSD laptop. When version 2004 came out, I read there were reported problems with SSD's, so I waited to explore the update. Time passed and I forgot. When version 20H2 came out, I started revisiting this update situation.
    When I open my update, I get the same message I’ve had since May - that the update is on its way and when my device is ready, the update will be available. I ran troubleshoot and the status is “problem with BITS service”. The BITS service is running as manual.

    I thought to do a repair- install, but perhaps it would just be easier to do an upgrade install to v2004 with the ISO.

    I only know enough about computers to get me in trouble so I hesitate to upgrade. Is it possible my system is still “not ready” for this update?
      My Computer


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

    @challo1hello and welcome to tenforums ,
    We strongly recommend Backup and Restore with Macrium Reflect making a full backup first before upgrading. I would suggest upgrading to 2004/20H1 after the backup is made. Having a backup takes the worry out of upgrades, because you can restore back to your backup state.
      My Computer


  8. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #1027

    challo1 said:
    The BITS service is running as manual.
    That is the correct startup type for the BITS service.

    If you decide to upgrade, do a disk image backup first, in case something goes sideways.
      My Computer


  9. Posts : 7
    windows 10 home,64-bit
       #1028

    Thank you steve108 for the welcome and the recommendation. Macrium Reflect looks good.
    I have a recovery usb for Win 10- version 1909. Would the back-up/restore with Macrium be any different?
      My Computer


  10. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #1029

    challo1 said:
    Thank you steve108 for the welcome and the recommendation. Macrium Reflect looks good.
    I have a recovery usb for Win 10- version 1909. Would the back-up/restore with Macrium be any different?
    You're welcome and yes, MR Backup will backup all files and partitions on your drive to the exact state of when you made the backup. Your recovery USB can't do that as it doesn't have your personal apps and files.
      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 18:05.
Find Us




Windows 10 Forums