From a54c3c69181bc0502c686bbf49c94381fd0e4032 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sun, 22 Mar 2026 22:07:51 +0100 Subject: [PATCH] Add option to revert previous changes to windows defaults --- Config/Features.json | 36 +-- Regfiles/Undo/Enable_Windows_Suggestions.reg | Bin 5724 -> 5728 bytes Schemas/ApplyChangesWindow.xaml | 14 +- Schemas/MainWindow.xaml | 79 +++++-- Schemas/RevertSettingsWindow.xaml | 160 +++++++++++++ Schemas/SharedStyles.xaml | 28 ++- Scripts/CLI/PrintPendingChanges.ps1 | 39 +++- Scripts/Features/ExecuteChanges.ps1 | 61 ++++- Scripts/GUI/Show-ApplyModal.ps1 | 2 +- Scripts/GUI/Show-MainWindow.ps1 | 51 +++++ Scripts/GUI/Show-RevertSettingsModal.ps1 | 225 +++++++++++++++++++ Scripts/Get.ps1 | 1 + Scripts/Helpers/GetUndoFeatureForParam.ps1 | 17 ++ Win11Debloat.ps1 | 40 +++- 14 files changed, 697 insertions(+), 56 deletions(-) create mode 100644 Schemas/RevertSettingsWindow.xaml create mode 100644 Scripts/GUI/Show-RevertSettingsModal.ps1 create mode 100644 Scripts/Helpers/GetUndoFeatureForParam.ps1 diff --git a/Config/Features.json b/Config/Features.json index 72f559c..ba754fc 100644 --- a/Config/Features.json +++ b/Config/Features.json @@ -251,9 +251,9 @@ "Features": [ { "FeatureId": "RemoveApps", - "Label": "Remove the apps specified in the 'Apps' parameter", + "Label": "apps", "Category": null, - "Action": "Remove Apps", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -275,9 +275,9 @@ }, { "FeatureId": "RemoveAppsCustom", - "Label": "Remove custom selection of apps", + "Label": "custom selection of apps", "Category": null, - "Action": "Remove Custom Apps", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -287,9 +287,9 @@ }, { "FeatureId": "RemoveCommApps", - "Label": "Remove the Mail, Calendar, and People apps", + "Label": "the Mail, Calendar, and People apps", "Category": null, - "Action": "Remove Mail, Calendar & People", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -299,9 +299,9 @@ }, { "FeatureId": "RemoveW11Outlook", - "Label": "Remove the new Outlook for Windows app", + "Label": "the new Outlook for Windows app", "Category": null, - "Action": "Remove Outlook for Windows", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -311,9 +311,9 @@ }, { "FeatureId": "RemoveGamingApps", - "Label": "Remove the Xbox App and Xbox Gamebar", + "Label": "the Xbox App and Xbox Gamebar", "Category": null, - "Action": "Remove Gaming Apps", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -323,9 +323,9 @@ }, { "FeatureId": "RemoveHPApps", - "Label": "Remove HP OEM applications", + "Label": "HP OEM applications", "Category": null, - "Action": "Remove HP Apps", + "Action": "Remove", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -335,9 +335,9 @@ }, { "FeatureId": "CreateRestorePoint", - "Label": "Create a system restore point", + "Label": "a system restore point", "Category": null, - "Action": "Create Restore Point", + "Action": "Create", "RegistryKey": null, "ApplyText": null, "UndoAction": null, @@ -891,7 +891,7 @@ }, { "FeatureId": "HideSearchTb", - "Label": "Hide search icon from the taskbar", + "Label": "on the taskbar", "Category": "Taskbar", "Action": "Hide Search", "RegistryKey": "Hide_Search_Taskbar.reg", @@ -903,7 +903,7 @@ }, { "FeatureId": "ShowSearchIconTb", - "Label": "Show search icon on the taskbar", + "Label": "on the taskbar", "Category": "Taskbar", "Action": "Show Search Icon", "RegistryKey": "Show_Search_Icon.reg", @@ -915,7 +915,7 @@ }, { "FeatureId": "ShowSearchLabelTb", - "Label": "Show search icon with label on the taskbar", + "Label": "on the taskbar", "Category": "Taskbar", "Action": "Show Search Label", "RegistryKey": "Show_Search_Icon_And_Label.reg", @@ -927,7 +927,7 @@ }, { "FeatureId": "ShowSearchBoxTb", - "Label": "Show search box on the taskbar", + "Label": "on the taskbar", "Category": "Taskbar", "Action": "Show Search Box", "RegistryKey": "Show_Search_Box.reg", diff --git a/Regfiles/Undo/Enable_Windows_Suggestions.reg b/Regfiles/Undo/Enable_Windows_Suggestions.reg index 6475b3b5bcaba4c5a4019154e0db14b3eb788598..7747bd3bd5ca5a5d010affb23c9c8b89ef293933 100644 GIT binary patch delta 13 Ucmcbk^FW8`|Gy0}VoY2N04@6kLI3~& delta 8 PcmaE$b4O<*Q;Zk@5!eGd diff --git a/Schemas/ApplyChangesWindow.xaml b/Schemas/ApplyChangesWindow.xaml index bf68687..e60d15b 100644 --- a/Schemas/ApplyChangesWindow.xaml +++ b/Schemas/ApplyChangesWindow.xaml @@ -180,20 +180,20 @@ - - + AutomationProperties.Name="Close"/> diff --git a/Schemas/MainWindow.xaml b/Schemas/MainWindow.xaml index 7b81645..36ef434 100644 --- a/Schemas/MainWindow.xaml +++ b/Schemas/MainWindow.xaml @@ -352,8 +352,16 @@ - - + + + + + + + + + + @@ -364,24 +372,60 @@ - + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + - - - + @@ -753,6 +797,11 @@ + + + @@ -1140,20 +1189,8 @@ -