Page 1 of 7 123 ... LastLast
  1.    10 Jun 2017 #1
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro

    When Insider build upgrade fails - A Workaround


    Note   Note
    OK geeks, this is if not a solution but at least a workaround to get upgrade done when it fails whatever you do. I apologize for the length of this post; as the workaround involves some elements not familiar to all users I decided to post this with explanatory screenshots describing each step.

    You try this at your own risk. However, I am convinced this will work, having spent 16+ hours today testing it over dozen times on two different physical devices and on a virtual machine, always restoring a Macrium image and letting upgrade to fail first then applying the fix. Every test was successful, upgrade working when everything else had failed.

    Time required = about 10 minutes more than upgrade usually takes.

     Bacground

    My upgrades from 16199 to 16215 on two devices failed twice on both devices (first try from Settings > Windows Update, second try from ISO). Both devices have totally different hardware, a Medion tablet running W10 PRO x32 and an Asus laptop running W10 PRO x64, both giving the same error:

    Click image for larger version. 

Name:	image.png 
Views:	220 
Size:	94.6 KB 
ID:	138940

    On further testing I got various other errors, for instance this:

    Click image for larger version. 

Name:	image.png 
Views:	221 
Size:	77.2 KB 
ID:	138942

    Researching all errors I found out that most often the upgrade seemed to fail because of either a hardware device or a user profile. In addition, a boot menu on multiboot system seemed to cause upgrade to fail.

    I decided to test an upgrade scenario where upgrade is run from an ISO image using a system profile instead of a normal user profile, with default Windows 10 drivers before most of the hardware specific drivers have been loaded.


     Preparations

    1.) Make ISO from upgrade files (tutorial). Rename ISO using a short, simple name (in this example I rename ISO as W10PRO.iso). Save / copy ISO to a location where it can be accessed by any user (not in a user profile or other system folder). A good location is for instance C:\Users\W10PRO.iso, or another internal drive. In this example I saved ISO as E:\W10PRO.iso

    2.) Make a new local admin user, I call it Dummy1 (tutorial to create new user, tutorial to change account type to administrator)

    3.) Sign out from all user accounts, sign in to Dummy1

    4.) Disable all existing user accounts except Dummy1 (tutorial)

    5.) On multiboot systems, backup boot menu (tutorial)

    6.) On multiboot systems, press WIN + R and type msconfig, click OK to open System Configuration. Select Boot tab, select all but current OS (the one you want to upgrade) one by one deleting their boot menu entries them:

    Click image for larger version. 

Name:	image.png 
Views:	221 
Size:	175.0 KB 
ID:	138934

    7.) Disconnect all external devices except mouse, keyboard and display

    8.) Press WIN+R, run following command:

    %windir%\system32\Sysprep\Sysprep.exe /oobe /reboot

    Sysprep will run and Windows will restart.


     Upgrade

    9.) When OOBE starts after restart showing region selection prompt you will be signed in with a system profile defaultuser0. Open Command Prompt with SHIFT + F10

    Click image for larger version. 

Name:	image.png 
Views:	7 
Size:	192.5 KB 
ID:	138936

    Note   Note
    Notice please: If any system folders have been relocated to another drive than C: you might see a Welcome to Windows 10 screen instead of region selection screen shown above. In this case you will be signed in using a system profile C:\Windows\System32\Config\Systemprofile. Steps 9 through 16 apply also in this case:

    Click image for larger version. 

Name:	image.png 
Views:	3 
Size:	76.3 KB 
ID:	138935

    Screenshot for steps 10. through 16. (numbers in screenshot refer to list item numbers below):

    Click image for larger version. 

Name:	image.png 
Views:	11 
Size:	445.0 KB 
ID:	138937
    (Click to enlarge.)

    10.) Enter command powershell to switch to PowerShell mode

    11.) Mount your Insider upgrade ISO with cmdlet Mount-DiskImage E:\W10PRO.iso replacing E:\W10PRO.iso with actual path and ISO filename

    12.) Type exit and press Enter to exit PowerShell mode

    13.) Type Diskpart to start Disk Partitioning utility

    14.) Type list vol to get list of all volumes (partitions). Check and note the drive ID letter for mounted ISO

    15.) Type exit and press Enter to exit Diskpart

    16.) Run command Z:\Setup.exe to start Windows build upgrade from ISO replacing Z:\ with actual drive ID for your mounted ISO

    Note   Note
    Any accidental click in OOBE might make the OOBE screen active hiding everything else. If this happens, if you lose sight of Windows Upgrade window. press ALT + TAB to show app selection, press ALT + TAB again to select Windows 10 Setup:

    Click image for larger version. 

Name:	image.png 
Views:	2 
Size:	62.8 KB 
ID:	138945

    Click image for larger version. 

Name:	image.png 
Views:	2 
Size:	190.5 KB 
ID:	138946


    17.) When upgrade has been done, OOBE requires you to create an initial user account. Make it a local account. You cannot use any username already reserved including those accounts you disabled in step 4. The same with Dummy1, it can't be used now. Use Dummy2 or anything else you prefer. If you try an existing username, you will be told to use another one:

    Click image for larger version. 

Name:	image.png 
Views:	5 
Size:	265.8 KB 
ID:	138938

    18.) When on Desktop open elevated Command Prompt and re-activate all disabled user accounts (tutorial), sign out from Dummy account, sign in to your original admin account, remove Dummy1 and Dummy2 accounts (tutorial)

    Note   Note
    The reason that we used Dummy accounts temporarily disabling your actual user accounts is that sometimes when running Sysprep on an existing Windows installation, active user accounts lose Start and Cortana / Search functionality. If this happens you must open elevated Command Prompt by pressing WIN + E to open File Explorer, browse to C:\Windows\System32 folder, right click CMD.exe and select Run as administrator:

    Click image for larger version. 

Name:	image.png 
Views:	219 
Size:	278.7 KB 
ID:	138939

    19.) On multiboot systems, restore boot menu (tutorial)


    Tip   Tip
    Attention Macrium and Hyper-V users:

    A nice way to do this, or even upgrade when there's nothing wrong and upgrade would work on your host PC is to let Windows Update download and initialize upgrade, make an ISO, then create a Macrium image and boot it in Macrium viBoot (tutorial).

    Attach upgrade ISO on viBoot VM, follow the instructions to upgrade, save viBoot image and restore it to your host.

    This way you can continue using your host PC all the time during the upgrade.


    That's it geeks! Let me know if this worked for you

    Kari
    Last edited by Kari; 11 Jun 2017 at 07:39. Reason: Incredible amount of typos!
      My ComputerSystem Spec
  2.    10 Jun 2017 #2
    Join Date : Dec 2015
    Posts : 5,950
    Windows10

    Great guide as usual.

    One problem people may run into though is if they have installed uwp apps (mostly 3rd party ones but not exclusively so) as these can cause sysprep to fail.

    You have to uninstall them first, or read sysprep error logs to find out which app caused it to fail. This can take a while as sysprep stops at first error - so you get in a loop of sysprep, uninstall 1st app, sysprep, uninstall 2nd app etc. until sysprep works. Even uninstalling can be a challenge as may need to use powershell in some cases.

    Another small but crucial point - of course, one should make an image backup prior to commencing this tutorial.
      My ComputerSystem Spec
  3.    10 Jun 2017 #3
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by cereberus View Post
    Great guide as usual.

    One problem people may run into though is if they have installed uwp apps (mostly 3rd party ones but not exclusively so) as these can cause sysprep to fail.

    You have to uninstall them first, or read sysprep error logs to find out which app caused it to fail. This can take a while as sysprep stops at first error - so you get in a loop of sysprep, uninstall 1st app, sysprep, uninstall 2nd app etc. until sysprep works. Even uninstalling can be a challenge as may need to use powershell in some cases.
    No, sorry but you are wrong.

    Generalizing with Sysprep might fail when done on an existing installation because of provisioned apps. Sysprepping without /generalize switch however always works. As in this procedure removing hardware device drivers is not necessary, the /generalize switch is not required and Sysprep will work without issues.

    Might fail when apps have been provisioned:

    sysprep.exe /generalize /oobe /reboot

    Never fails:

    sysprep.exe /oobe /reboot

    Kari
      My ComputerSystem Spec
  4.    11 Jun 2017 #4
    Join Date : Sep 2014
    Adelaide, South Australia
    Posts : 107
    W10 Pro x64. W10 Pro x64 Insider Preview

    Thank you Kari. I'll be trying this when I have time. I have had failure after failure attempting to install 16215, including from an ISO. BTW, I found multiple *.esd files when I made the ISO. 64 bit Pro build 16199.
      My ComputersSystem Spec
  5.    11 Jun 2017 #5
    Join Date : Dec 2015
    Posts : 5,950
    Windows10

    Quote Originally Posted by Kari View Post
    No, sorry but you are wrong.

    Generalizing with Sysprep might fail when done on an existing installation because of provisioned apps. Sysprepping without /generalize switch however always works. As in this procedure removing hardware device drivers is not necessary, the /generalize switch is not required and Sysprep will work without issues.

    Might fail when apps have been provisioned:

    sysprep.exe /generalize /oobe /reboot

    Never fails:

    sysprep.exe /oobe /reboot

    Kari
    Ah my apologies. I have never tried doing it without generalise.
      My ComputerSystem Spec
  6.    11 Jun 2017 #6
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro
    Thread Starter

    Added this tip to the end of first post:

    Tip   Tip
    Attention Macrium and Hyper-V users:

    A nice way to do this, or even upgrade when there's nothing wrong and upgrade would work on your host PC is to let Windows Update download and initialize upgrade, make an ISO, then create a Macrium image and boot it in Macrium viBoot (tutorial).

    Attach upgrade ISO on viBoot VM, follow the instructions to upgrade, save viBoot image and restore it to your host.

    This way you can continue using your host PC all the time during the upgrade.
      My ComputerSystem Spec
  7.    11 Jun 2017 #7
    Join Date : Sep 2014
    Adelaide, South Australia
    Posts : 107
    W10 Pro x64. W10 Pro x64 Insider Preview

    Well, my attempt to install 16215 using Kari's workaround instructions was unsuccessful, crashed with INACCESSIBLE BOOT DEVICE after the prolonged, "installing" then booting once and beginning the first stage of the real update, Last % is saw was 10, IIRC. About the same place as my attempt to upgrade from the ISO. Maybe a faulty ISO?

    Now I see your new suggestion, Kari. Will look at that tomorrow
      My ComputersSystem Spec
  8.    11 Jun 2017 #8
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by lmod View Post
    Well, my attempt to install 16215 using Kari's workaround instructions was unsuccessful, crashed with INACCESSIBLE BOOT DEVICE after the prolonged, "installing" then booting once and beginning the first stage of the real update, Last % is saw was 10, IIRC. About the same place as my attempt to upgrade from the ISO. Maybe a faulty ISO?

    Now I see your new suggestion, Kari. Will look at that tomorrow
    You did disable all normal user accounts?
      My ComputerSystem Spec
  9.    11 Jun 2017 #9
    Join Date : Oct 2013
    Posts : 343
    Windows 10 Pro x64, Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64

    Kari,

    I followed your instructions exactly and it ended just as Imod's did, unsuccessful and crashed with INACCESSIBLE BOOT DEVICE.
    I think I'll just wait for an update from Microsoft but thanks for your efforts.

    Paul
      My ComputerSystem Spec
  10.    11 Jun 2017 #10
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,971
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by pbcopter View Post
    Kari,

    I followed your instructions exactly and it ended just as Imod's did, unsuccessful and crashed with INACCESSIBLE BOOT DEVICE.
    I think I'll just wait for an update from Microsoft but thanks for your efforts.

    Paul
    This is strange, I cannot get it to fail.

    Did you get normal OOBE region selection screen after Sysprep, or the System > Welcome to Windows 10 screen?

    Anyway, I am already working with a more secure method, been testing all day. I'll wait a few more volunteers to test this before rewriting fist post with new method.
      My ComputerSystem Spec

 
Page 1 of 7 123 ... LastLast


Similar Threads
Thread Forum
Insider Preview 1703 Build 16176 fails
Since being with the test beginning with the Technical Preview I finally have hit a bump in the road on 1 computer. It has Version 1730 Build 16170.1000 on it but when it tries to update to Build 16176 all that is presented is a blue screen with...
Windows Insider
Solved Win 10 upgrade to Build 10586 continually fails
Since I installed Win 10 Build 10240 a few months ago Windows Update has been trying on an almost daily basis to upgrade it to the current Build 10586. While all other updates seem to have installed normally, this one has consistently failed....
Installation and Upgrade
Upgrade to build 10586 fails at 32%
I am trying to upgrade from windows 10 free upgrade to build 10586 (x64 pro) and it stalls at the same point whether the upgrade is from windows update or an ISO file on dvd. I select the first option to keep existing files and apps. But it stalls...
Installation and Upgrade
Solved Upgrade from build 10061 to 10074 fails (Inaccessible Boot Device)
Hi all, I keep getting the Inaccessible Boot Device error when trying to upgrade from 10061 to 10074. I *think* this may be due to my symlinking the \Windows\System32\DriverStore\FileRepository folder to another partition on the same hard disk....
Installation and Upgrade
Upgrade to build 10074 fails
When I try to upgrade to build 10074 I get a failure message that reads fbl_impressive Professional 10074 - Error 0xc1900107. I have tried Google and Bing but can't find a fix. Help!
Installation and Upgrade
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 11:52.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums