Change the number of rollback days for Windows 10 feature upgrades - gHacks Tech News

Change the number of rollback days for Windows 10 feature upgrades

When you install a new feature upgrade of Windows 10 on a computer or upgrade from a previous version of Windows to a newer one, you get options to rollback for a certain period of time.

Windows keeps the files of the old systems on the drive for a period of time to give users and admins options to roll back to the previous version. There are plenty of reasons for wanting to do so, from broken functionality or programs to removed or modified features.

The rollback period was set to 30 days initially but Microsoft reduced the period to 10 days with the release of the Anniversary Update for Windows 10.

Good news is that you can modify the period to increase it again or even decrease it. How that is done is revealed on Microsoft's Doc website.

The following commands are useful in this regard. Note that you need to open an elevated command prompt and run the commands from there.

To launch an elevated command prompt tap on the Windows-key, type cmd.exe, hold down the Shift-key and Ctrl-key, and select the cmd.exe (may also be listed as Command Prompt) result from the list of returned items.

Tip: Use DISM to fix issues that SFCNow can't fix.

Change rollback period on Windows 10

windows 10 set os rollback time

The first command that you may want to run is DISM /Online /Get-OSUninstallWindow as it returns the current rollback period in days. Just run the command and check the value displayed after "Uninstall Window" in the output.

The second command, DISM /Online /Set-OSUninstallWindow /Value:30, modifies the rollback period. The command listed in the last sentence changes it to 30 days which means that you will be able to roll back to the previous version of Windows up to 30 days after installation of the new version.

You can change the value with any other value, e.g. 60 or 90 days. Note that Windows will keep the files of the previous version of the operating system on the device for the selected period.

Microsoft's DISM tool supports two additional commands that you may find interesting. The command DISM /Online /Remove-OSUninstall removes the previous version of Windows when executed so that the system cannot be rolled back anymore.

The command DISM /Online /Initiate-OSUninstall initiates a rollback from the command line.

Summary
Change the number of rollback days for Windows 10 feature upgrades
Article Name
Change the number of rollback days for Windows 10 feature upgrades
Description
Find out how to use the tool DISM that is part of Windows to change the number of days that you can rollback to previous Windows versions.
Author
Publisher
Ghacks Technology News
Logo

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. mike p said on June 21, 2018 at 2:10 pm
    Reply

    There is a boo boo
    DISM /Online /Initiate-OSUninstall initiates a rollback from the command line.

    1. Martin Brinkmann said on June 21, 2018 at 2:31 pm
      Reply

      Thanks Mike!

  2. Anonymous said on June 21, 2018 at 7:29 pm
    Reply

    Windows 10, in the Type here to search box, type: cmd then hold Ctrl and Shift with left hand and press Enter with right, launch command prompt in Admin mode.

  3. Ron said on June 25, 2018 at 11:07 pm
    Reply

    I ran the commands on my Windows 10 Pro at work with no problems. Then I ran the same on my home laptop – also Windows 10 Pro – and got an error 87 “get-osuninstallwindow option is unknown”. In both instances, I simply cut-and-pasted the commands from your article and into the Administrator command prompt windows.

    Entering “DISM /?” doesn’t show a “Get-OSUninstallWindow”. Hmmmmm

  4. Klaus Hartnegg said on June 29, 2018 at 9:45 am
    Reply

    I also get error 87 option unknown in Win10 Enterprise 1709.

  5. Anonymous said on June 29, 2018 at 9:51 am
    Reply

    It appears that this options need at least version 1803.

  6. sharon said on July 4, 2018 at 10:29 pm
    Reply

    Worked like a charm for me thank you.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.