Windows gives a user the ability to uninstall and roll back to a previous version of Windows. You can use DISM to:
- Find out how many days after an upgrade that an OS can be uninstalled
- Initiate an uninstall
- Remove the ability for a user to uninstall a Windows upgrade
- Set the number of days that a user has to uninstall a Windows upgrade
/Get-OSUninstallWindow
Run this command against an online image to see how many days after an upgrade that an uninstall can be initiated.
DISM /Online /Get-OSUninstallWindow
/Initiate-OSUninstall
Run this command against an online image to revert a PC to a previous Windows installation.
DISM /Online /Initiate-OSUninstall
/Remove-OSUninstall
Run this command against an online image to remove the ability to roll back a PC to a previous installation of Windows.
DISM /Online /Remove-OSUninstall
/Set-OSUninstallWindow
Run this command against an online image to set the number of days after an upgrade that an uninstall can be initiated.
DISM /Online /Set-OSUninstallWindow /Value:30