From 329b96e4c71b2597809766a1e69ce9b45d33c84b Mon Sep 17 00:00:00 2001 From: Belim Date: Mon, 28 Oct 2024 15:43:49 +0100 Subject: [PATCH] Windows Rollback Timer --- plugins/Windows Rollback Timer.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/Windows Rollback Timer.json diff --git a/plugins/Windows Rollback Timer.json b/plugins/Windows Rollback Timer.json new file mode 100644 index 0000000..7250e7d --- /dev/null +++ b/plugins/Windows Rollback Timer.json @@ -0,0 +1,13 @@ +{ + "PlugID": "Windows Rollback Timer", + "PlugInfo": "This plugin checks and sets the uninstall window for reverting to a previous Windows version after an upgrade. The time frame can be configured up to 60 days. After a Windows upgrade (e.g., via Windows Update to version 1803), a copy of the previous Windows version is stored in the 'Windows.old' folder. This allows users to return to the prior version through the 'Recovery' option under 'Update & Security' in Windows Settings. By default, this rollback option is available for only 10 days, provided the 'Windows.old' folder hasn’t been deleted. However, this time frame can be extended up to 60 days using this plugin. \n\n**Error Handling**: If 'Error 1168' appears when attempting to set the rollback period, this indicates that the 'Windows.old' folder has been deleted, making a rollback impossible.", + "PlugCheck": [], + "PlugCategory": "System (Plugins)", + "PlugDo": [ + "cmd.exe /c DISM /Online /Get-OSUninstallWindow", + "cmd.exe /c DISM /Online /Set-OSUninstallWindow /Value:60" + ], + "PlugUndo": [ + "powershell -Command \"Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('No undo is available for this rollback time setting. To change it, please use DISM with a new value.', 'Info', [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Information)\"" + ] +}