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.
Change rollback period on Windows 10
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 to a maximum of 60 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.Advertisement