diff --git a/Config/Features.json b/Config/Features.json index 2253c7b..150e799 100644 --- a/Config/Features.json +++ b/Config/Features.json @@ -856,12 +856,12 @@ { "FeatureId": "DisableWidgets", "Label": "Disable widgets on the taskbar & lock screen", - "ToolTip": "This will disable the widgets features in Windows, including the widgets button on the taskbar and the widgets that can appear on the lock screen. This feature uses policies, which will lock down certain settings.", + "ToolTip": "This will disable the widgets features in Windows, including the widgets button on the taskbar and the widgets that can appear on the lock screen.", "Category": "Taskbar", "Priority": 4, - "RegistryKey": "Disable_Widgets_Service.reg", - "ApplyText": "Disabling widgets on the taskbar & lock screen...", - "RegistryUndoKey": "Enable_Widgets_Service.reg", + "RegistryKey": null, + "ApplyText": null, + "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, diff --git a/Regfiles/Disable_Widgets_Service.reg b/Regfiles/Disable_Widgets_Service.reg deleted file mode 100644 index 30bddcb..0000000 Binary files a/Regfiles/Disable_Widgets_Service.reg and /dev/null differ diff --git a/Regfiles/Sysprep/Disable_Widgets_Service.reg b/Regfiles/Sysprep/Disable_Widgets_Service.reg deleted file mode 100644 index 30bddcb..0000000 Binary files a/Regfiles/Sysprep/Disable_Widgets_Service.reg and /dev/null differ diff --git a/Regfiles/Undo/Enable_Widgets_Service.reg b/Regfiles/Undo/Enable_Widgets_Service.reg deleted file mode 100644 index 05272bd..0000000 Binary files a/Regfiles/Undo/Enable_Widgets_Service.reg and /dev/null differ diff --git a/Scripts/Features/ExecuteChanges.ps1 b/Scripts/Features/ExecuteChanges.ps1 index fb69a29..5489a46 100644 --- a/Scripts/Features/ExecuteChanges.ps1 +++ b/Scripts/Features/ExecuteChanges.ps1 @@ -26,10 +26,6 @@ function ExecuteParameter { # Also remove the app package for Copilot RemoveApps 'Microsoft.Copilot' } - 'DisableWidgets' { - # Also remove the app packages for Widgets - RemoveApps 'Microsoft.StartExperiencesApp','MicrosoftWindows.Client.WebExperience','Microsoft.WidgetsPlatformRuntime' - } } return } @@ -86,6 +82,13 @@ function ExecuteParameter { RemoveApps $appsList return } + 'DisableWidgets' { + Write-Host "> Disabling widgets on the taskbar & lock screen..." + # Stop widgets related processes before removing the app packages to prevent potential issues + Get-Process *Widget* | Stop-Process + + RemoveApps 'Microsoft.StartExperiencesApp','MicrosoftWindows.Client.WebExperience','Microsoft.WidgetsPlatformRuntime' + } "EnableWindowsSandbox" { Write-Host "> Enabling Windows Sandbox..." EnableWindowsFeature "Containers-DisposableClientVM"