Set Number of Days can Go Back to Previous Version of Windows  

    Set Number of Days can Go Back to Previous Version of Windows

    Set Number of Days can Go Back to Previous Version of Windows

    How to Set Number of Days can Go Back to Previous Version of Windows in Windows 10
    Published by Category: Installation & Upgrade
    25 Jun 2018
    Designer Media Ltd


    How to Set Number of Days can Go Back to Previous Version of Windows in Windows 10


    When you upgrade to Windows 10 or update to a new version or build of Windows 10 (ex: Windows Update), a copy of the previous installation is saved to the Windows.old folder in the root directory of the Windows 10 drive as a backup. This backup will allow you to be able to go back to the previous version of Windows for up to a 10 days after upgrading to Windows 10 if you should want or need to.

    Starting with the Windows 10 April 2018 Update v1803, new DISM commands have been added to:
    • Find out how many days after an upgrade that an OS can be uninstalled (go back to the previous version)
    • Initiate an uninstall (go back to the previous version)
    • Remove the ability for a user to uninstall a Windows upgrade (go back to the previous version)
    • Set the number of days that a user has to uninstall a Windows upgrade (go back to the previous version)

    This tutorial will show you how to see and set the number of days after an upgrade you are still able to go back to a previous version of Windows in Windows 10.

    You must be signed in as an administrator to set the number of days.

    Note   Note
    Note that these DISM commands are only available while you can still go back to a previous version of Windows.

    If either of the following are true, then DISM will report Error 1168, Element not found. This error message indicates that the previous version has been deleted, and there's currently not a previous version to go back to.
    • Windows has removed the previous version automatically after 10 days
    • The previous version has been removed using Disk Cleanup

     CONTENTS:

    • Option One: See Current Number of Days after an Upgrade You Can Go back to Previous Version of Windows
    • Option Two: Set Number of Days after an Upgrade You Can Go back to Previous Version of Windows
    • Option Three: Remove Ability to Go back to Previous Version of Windows


    EXAMPLE: "Go back to the previous version of Windows 10" after set number of days have expired
    Set Number of Days can Go Back to Previous Version of Windows-recovery_settings.jpg






    OPTION ONE

    See Current Number of Days after an Upgrade You Can Go back to Previous Version of Windows


    1. Open an elevated command prompt.

    2. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)

    DISM /Online /Get-OSUninstallWindow

    3. You will now see the number of days (ex: "10") currently set after an upgrade to be able to go back to a previous version of Windows. You can now close the elevated command prompt if you like.

    Set Number of Days can Go Back to Previous Version of Windows-get-osuninstallwindow.png






    OPTION TWO

    Set Number of Days after an Upgrade You Can Go back to Previous Version of Windows


    1. Open an elevated command prompt.

    2. Type the command below into the elevated command prompt, and press Enter. (see screenshot below)

    DISM /Online /Set-OSUninstallWindow /Value:<days>

    Substitute <days> in the command above with the actual number (2 to 60) of days you want. The default is 10 days.

    For example: DISM /Online /Set-OSUninstallWindow /Value:30

    3. You can now close the elevated command prompt if you like.

    Set Number of Days can Go Back to Previous Version of Windows-set-osuninstallwindow.png






    OPTION THREE

    Remove Ability to Go back to Previous Version of Windows



    This option will remove the ability to go back to the previous version of Windows on your PC.

    You will be able to go back to a previous version of Windows again after the next time you update Windows 10 to a new version or build via Windows Update.

    This will not delete the Windows.old folder or its content.

    1. Open an elevated command prompt.

    2. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)

    DISM /Online /Remove-OSUninstall

    3. You will now no longer be able to go back to the previous version of Windows on this PC. You can now close the elevated command prompt if you like.

    Set Number of Days can Go Back to Previous Version of Windows-remove-osuninstall.png


    That's it,
    Shawn






  1. Bree's Avatar
    Posts : 15,305
    10 Home x64 (2004) (10 Pro on 2nd pc)
       #1

    Note that these DISM commands are only available while you can still go back to a previous version of Windows

    If either of the following are true:


    then DISM will report Error 1168, Element not found.

    Set Number of Days can Go Back to Previous Version of Windows-dism-getosuninstallwindow-element-not-found.png
      My Computers

  2. Brink's Avatar
    Posts : 48,770
    64-bit Windows 10 Pro for Workstations build 19635
    Thread Starter
       #2

    Thank you Bree. I added a note at the top of the tutorial for this.
      My Computers


  3. Posts : 357
    Windows 10
       #3

    Brink, I did not know this totorial was here, did not show up in "search", please take a look at this: Extend rollback time
      My Computer


 

Tutorial Categories

Set Number of Days can Go Back to Previous Version of Windows 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 Threads
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 19:31.
Find Us




Windows 10 Forums