Add option to disable Windows search history, enable Windows Sandbox and enable WSL (#477)

* Add option to disable local Windows search history
* Add option to enable Windows Sandbox and WSL
This commit is contained in:
Jeffrey
2026-02-18 19:00:49 +01:00
committed by GitHub
parent e0e69c0ef5
commit 2c940ff489
8 changed files with 97 additions and 10 deletions

View File

@@ -33,17 +33,21 @@
"Name": "File Explorer", "Name": "File Explorer",
"Icon": "" "Icon": ""
}, },
{
"Name": "Gaming",
"Icon": ""
},
{ {
"Name": "Multi-tasking", "Name": "Multi-tasking",
"Icon": "" "Icon": ""
}, },
{ {
"Name": "Other", "Name": "Optional Windows Features",
"Icon": "" "Icon": ""
}, },
{ {
"Name": "Gaming", "Name": "Other",
"Icon": "" "Icon": ""
} }
], ],
"UiGroups": [ "UiGroups": [
@@ -354,6 +358,19 @@
"MinVersion": null, "MinVersion": null,
"MaxVersion": null "MaxVersion": null
}, },
{
"FeatureId": "DisableSearchHistory",
"Label": "local Windows Search history",
"ToolTip": "This setting disables local search history in Windows Search. This does not affect web search history or the search history saved in Microsoft Edge.",
"Category": "Privacy & Suggested Content",
"Action": "Disable",
"RegistryKey": "Disable_Search_History.reg",
"ApplyText": "> Disabling search history...",
"UndoAction": "Enable",
"RegistryUndoKey": "Enable_Search_History.reg",
"MinVersion": null,
"MaxVersion": null
},
{ {
"FeatureId": "DisableSuggestions", "FeatureId": "DisableSuggestions",
"Label": "tips, tricks & suggested content throughout Windows", "Label": "tips, tricks & suggested content throughout Windows",
@@ -396,7 +413,7 @@
{ {
"FeatureId": "DisableEdgeAds", "FeatureId": "DisableEdgeAds",
"Label": "ads, suggestions and newsfeed in Edge", "Label": "ads, suggestions and newsfeed in Edge",
"ToolTip": "This will turn off various distractions from Microsoft Edge such as ads, suggestions and the MSN news feed. This setting uses policies, which means some settings will be locked.", "ToolTip": "This will turn off various distractions from Microsoft Edge such as ads, suggestions and the MSN news feed. This feature uses policies, some settings will be locked.",
"Category": "Privacy & Suggested Content", "Category": "Privacy & Suggested Content",
"Action": "Disable", "Action": "Disable",
"RegistryKey": "Disable_Edge_Ads_And_Suggestions.reg", "RegistryKey": "Disable_Edge_Ads_And_Suggestions.reg",
@@ -587,7 +604,7 @@
{ {
"FeatureId": "DisableEdgeAI", "FeatureId": "DisableEdgeAI",
"Label": "AI features in Microsoft Edge", "Label": "AI features in Microsoft Edge",
"ToolTip": "This will turn off AI features in Microsoft Edge, such as the AI-powered sidebar and Copilot features. This setting uses policies, which means some settings will be locked.", "ToolTip": "This will turn off AI features in Microsoft Edge, such as the AI-powered sidebar and Copilot features. This feature uses policies, some settings will be locked.",
"Category": "AI", "Category": "AI",
"Action": "Disable", "Action": "Disable",
"RegistryKey": "Disable_Edge_AI_Features.reg", "RegistryKey": "Disable_Edge_AI_Features.reg",
@@ -857,7 +874,7 @@
{ {
"FeatureId": "DisableWidgets", "FeatureId": "DisableWidgets",
"Label": "widgets on the taskbar & lock screen", "Label": "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.", "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, some settings will be locked.",
"Category": "Taskbar", "Category": "Taskbar",
"Priority": 4, "Priority": 4,
"Action": "Disable", "Action": "Disable",
@@ -1350,6 +1367,32 @@
"RegistryUndoKey": "Enable_Brave_Bloat.reg", "RegistryUndoKey": "Enable_Brave_Bloat.reg",
"MinVersion": null, "MinVersion": null,
"MaxVersion": null "MaxVersion": null
},
{
"FeatureId": "EnableWindowsSandbox",
"Label": "Windows Sandbox",
"ToolTip": "Windows Sandbox is a lightweight desktop environment for safely running applications in isolation. Software installed inside the Windows Sandbox environment remains 'sandboxed' and runs separately from the host machine. Only supported on Windows 11 Pro, Workstation, and Enterprise editions.",
"Category": "Optional Windows Features",
"Action": "Enable",
"RegistryKey": null,
"ApplyText": "> Enabling Windows Sandbox...",
"UndoAction": null,
"RegistryUndoKey": null,
"MinVersion": 22483,
"MaxVersion": null
},
{
"FeatureId": "EnableWindowsSubsystemForLinux",
"Label": "Windows Subsystem for Linux",
"ToolTip": "Windows Subsystem for Linux allows you to run a Linux environment directly on Windows without the need for a virtual machine.",
"Category": "Optional Windows Features",
"Action": "Enable",
"RegistryKey": null,
"ApplyText": "> Enabling Windows Subsystem for Linux...",
"UndoAction": null,
"RegistryUndoKey": null,
"MinVersion": 22000,
"MaxVersion": null
} }
] ]
} }

View File

@@ -86,6 +86,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
#### Privacy & Suggested Content #### Privacy & Suggested Content
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
- Disable local Windows search history.
- Disable tips, tricks, suggestions & ads across Windows. - Disable tips, tricks, suggestions & ads across Windows.
- Disable 'Windows Spotlight' and tips & tricks on the lock screen. - Disable 'Windows Spotlight' and tips & tricks on the lock screen.
- Disable 'Windows Spotlight' desktop background option. - Disable 'Windows Spotlight' desktop background option.
@@ -160,6 +161,11 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Disable Snap Layout suggestions when dragging windows to the top of screen and when hovering on the maximize button. (W11 only) - Disable Snap Layout suggestions when dragging windows to the top of screen and when hovering on the maximize button. (W11 only)
- Change if tabs are shown when snapping or pressing Alt+Tab. (W11 only) - Change if tabs are shown when snapping or pressing Alt+Tab. (W11 only)
#### Optional Windows Features
- Enable Windows Sandbox, a lightweight desktop environment for safely running applications in isolation. (W11 only)
- Enable Windows Subsystem for Linux which allows you to run a Linux environment directly on Windows. (W11 only)
#### Other #### Other
- Disable Xbox Game Bar integration & game/screen recording. This also disables `ms-gamingoverlay`/`ms-gamebar` popups if you uninstall the Xbox Game Bar. - Disable Xbox Game Bar integration & game/screen recording. This also disables `ms-gamingoverlay`/`ms-gamebar` popups if you uninstall the Xbox Game Bar.

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable Windows search history
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SearchSettings]
"IsDeviceSearchHistoryEnabled"=dword:00000000

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable Windows search history
[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\SearchSettings]
"IsDeviceSearchHistoryEnabled"=dword:00000000

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable Windows search history
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SearchSettings]
"IsDeviceSearchHistoryEnabled"=dword:00000001

View File

@@ -710,7 +710,7 @@
</MenuItem> </MenuItem>
<MenuItem x:Name="MenuLogs" Header="Logs" AutomationProperties.Name="Logs"> <MenuItem x:Name="MenuLogs" Header="Logs" AutomationProperties.Name="Logs">
<MenuItem.Icon> <MenuItem.Icon>
<TextBlock Text="&#xf0e3;" FontFamily="Segoe Fluent Icons" FontSize="16" Foreground="{DynamicResource FgColor}"/> <TextBlock Text="&#xf000;" FontFamily="Segoe Fluent Icons" FontSize="16" Foreground="{DynamicResource FgColor}"/>
</MenuItem.Icon> </MenuItem.Icon>
</MenuItem> </MenuItem>
<MenuItem x:Name="MenuAbout" Header="About" AutomationProperties.Name="About"> <MenuItem x:Name="MenuAbout" Header="About" AutomationProperties.Name="About">

View File

@@ -22,7 +22,10 @@ param (
[switch]$ForceRemoveEdge, [switch]$ForceRemoveEdge,
[switch]$DisableDVR, [switch]$DisableDVR,
[switch]$DisableGameBarIntegration, [switch]$DisableGameBarIntegration,
[switch]$EnableWindowsSandbox,
[switch]$EnableWindowsSubsystemForLinux,
[switch]$DisableTelemetry, [switch]$DisableTelemetry,
[switch]$DisableSearchHistory,
[switch]$DisableFastStartup, [switch]$DisableFastStartup,
[switch]$DisableBitlockerAutoEncryption, [switch]$DisableBitlockerAutoEncryption,
[switch]$DisableModernStandbyNetworking, [switch]$DisableModernStandbyNetworking,

View File

@@ -24,7 +24,10 @@ param (
[switch]$ForceRemoveEdge, [switch]$ForceRemoveEdge,
[switch]$DisableDVR, [switch]$DisableDVR,
[switch]$DisableGameBarIntegration, [switch]$DisableGameBarIntegration,
[switch]$EnableWindowsSandbox,
[switch]$EnableWindowsSubsystemForLinux,
[switch]$DisableTelemetry, [switch]$DisableTelemetry,
[switch]$DisableSearchHistory,
[switch]$DisableFastStartup, [switch]$DisableFastStartup,
[switch]$DisableBitlockerAutoEncryption, [switch]$DisableBitlockerAutoEncryption,
[switch]$DisableModernStandbyNetworking, [switch]$DisableModernStandbyNetworking,
@@ -877,8 +880,17 @@ function ExecuteParameter {
RemoveApps $appsList RemoveApps $appsList
return return
} }
"ForceRemoveEdge" { "EnableWindowsSandbox" {
ForceRemoveEdge Write-ToConsole "> Enabling Windows Sandbox..."
Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -All -NoRestart
Write-ToConsole ""
return
}
"EnableWindowsSubsystemForLinux" {
Write-ToConsole "> Enabling Windows Subsystem for Linux..."
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart
Write-ToConsole ""
return return
} }
'ClearStart' { 'ClearStart' {
@@ -1045,6 +1057,14 @@ function RestartExplorer {
return return
} }
if ($script:Params.ContainsKey("EnableWindowsSandbox")) {
Write-ToConsole "Warning: The Windows Sandbox feature will only be available after a reboot" -ForegroundColor Yellow
}
if ($script:Params.ContainsKey("EnableWindowsSubsystemForLinux")) {
Write-ToConsole "Warning: The Windows Subsystem for Linux feature will only be available after a reboot" -ForegroundColor Yellow
}
if ($script:Params.ContainsKey("DisableMouseAcceleration")) { if ($script:Params.ContainsKey("DisableMouseAcceleration")) {
Write-ToConsole "Warning: Changes to the Enhance Pointer Precision setting will only take effect after a reboot" -ForegroundColor Yellow Write-ToConsole "Warning: Changes to the Enhance Pointer Precision setting will only take effect after a reboot" -ForegroundColor Yellow
} }