Compare commits

...

5 Commits

Author SHA1 Message Date
Chris Titus
6df8ae900c chore: Update generated dev docs (#4192) 2026-03-11 16:30:50 -05:00
Gabi
a16f4b7d07 Update WPFTweaksXboxRemoval (#4170)
* Update WPFTweaksXboxRemoval

* Update tweaks.json
2026-03-11 16:30:00 -05:00
Chris Titus
adaab0ab36 chore: Update generated dev docs (#4191) 2026-03-11 16:26:43 -05:00
Gabi
c270d25460 Added WPFTweaksDisableStoreSearch (#4173)
* Added WPFTweaksDisableStoreSearch

* Update tweaks.json
2026-03-11 16:26:06 -05:00
Eren
2bb007b6ff Fix import / export config issue (#4189)
* apply toggle fix

* apply fix that disables all toggles outside of config
2026-03-11 16:23:32 -05:00
57 changed files with 129 additions and 59 deletions

View File

@@ -122,6 +122,19 @@
],
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/revertstartmenu"
},
"WPFTweaksDisableStoreSearch": {
"Content": "Disable Microsoft Store search results",
"Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.",
"category": "Essential Tweaks",
"panel": "1",
"InvokeScript": [
"icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /deny Everyone:F"
],
"UndoScript": [
"icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /grant Everyone:F"
],
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/disablestoresearch"
},
"WPFTweaksLocation": {
"Content": "Disable Location Tracking",
"Description": "Disables Location Tracking.",
@@ -1635,6 +1648,15 @@
"Description": "Removes Xbox services, the Xbox app, Game Bar, and related authentication components.",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"registry": [
{
"Path": "KCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR",
"Name": "AppCaptureEnabled",
"Value": "0",
"Type": "DWord",
"OriginalValue": "1"
}
],
"appx": [
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",

View File

@@ -3,7 +3,7 @@ title: "Bing Search in Start Menu"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2185}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2207}
"WPFToggleBingSearch": {
"Content": "Bing Search in Start Menu",
"Description": "If enabled, Bing web search results will be included in your Start Menu search.",

View File

@@ -3,7 +3,7 @@ title: "Dark Theme for Windows"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2143}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2165}
"WPFToggleDarkMode": {
"Content": "Dark Theme for Windows",
"Description": "Enable/Disable Dark Mode.",

View File

@@ -3,7 +3,7 @@ title: "Detailed BSoD"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2559}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2581}
"WPFToggleDetailedBSoD": {
"Content": "Detailed BSoD",
"Description": "If enabled, you will see a detailed Blue Screen of Death (BSOD) with more information.",

View File

@@ -3,7 +3,7 @@ title: "Cross-Device Resume"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2689}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2711}
"WPFToggleDisableCrossDeviceResume": {
"Content": "Cross-Device Resume",
"Description": "This tweak controls the Resume function in Windows 11 24H2 and later, which allows you to resume an activity from a mobile device and vice-versa.",

View File

@@ -3,7 +3,7 @@ title: "Show Hidden Files"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2439}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2461}
"WPFToggleHiddenFiles": {
"Content": "Show Hidden Files",
"Description": "If enabled, Hidden Files will be shown.",

View File

@@ -3,7 +3,7 @@ title: "Remove Settings Home Page"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2309}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2331}
"WPFToggleHideSettingsHome": {
"Content": "Remove Settings Home Page",
"Description": "Removes the Home Page in the Windows Settings app.",

View File

@@ -3,7 +3,7 @@ title: "Mouse Acceleration"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2327}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2349}
"WPFToggleMouseAcceleration": {
"Content": "Mouse Acceleration",
"Description": "If enabled, the Cursor movement is affected by the speed of your physical mouse movements.",

View File

@@ -3,7 +3,7 @@ title: "Disable Multiplane Overlay"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2421}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2443}
"WPFToggleMultiplaneOverlay": {
"Content": "Disable Multiplane Overlay",
"Description": "Disable the Multiplane Overlay which can sometimes cause issues with Graphics Cards.",

View File

@@ -3,7 +3,7 @@ title: "New Outlook"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2379}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2401}
"WPFToggleNewOutlook": {
"Content": "New Outlook",
"Description": "If disabled, it removes the new Outlook toggle, disables the new Outlook migration, and ensures the classic Outlook application is used.",

View File

@@ -3,7 +3,7 @@ title: "Num Lock on Startup"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2221}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2243}
"WPFToggleNumLock": {
"Content": "Num Lock on Startup",
"Description": "Toggle the Num Lock key state when your computer starts.",

View File

@@ -3,7 +3,7 @@ title: "S3 Sleep"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2585}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2607}
"WPFToggleS3Sleep": {
"Content": "S3 Sleep",
"Description": "Toggles between Modern Standby and S3 Sleep.",

View File

@@ -3,7 +3,7 @@ title: "Show File Extensions"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2467}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2489}
"WPFToggleShowExt": {
"Content": "Show File Extensions",
"Description": "If enabled, File extensions (e.g., .txt, .jpg) are visible.",

View File

@@ -3,7 +3,7 @@ title: "Modern Standby fix"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2203}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2225}
"WPFToggleStandbyFix": {
"Content": "Modern Standby fix",
"Description": "Disable network connection during S0 sleep. If network connectivity is turned on during S0 sleep it could cause overheating on modern laptops",

View File

@@ -3,7 +3,7 @@ title: "Recommendations in Start Menu"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2265}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2287}
"WPFToggleStartMenuRecommendations": {
"Content": "Recommendations in Start Menu",
"Description": "If disabled, then you will not see recommendations in the Start Menu. WARNING: This will also disable Windows Spotlight on your Lock Screen as a side effect.",

View File

@@ -3,7 +3,7 @@ title: "Sticky Keys"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2361}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2383}
"WPFToggleStickyKeys": {
"Content": "Sticky Keys",
"Description": "If enabled, Sticky Keys is activated. Sticky keys is an accessibility feature of some graphical user interfaces which assists users who have physical disabilities or help users reduce repetitive strain injury.",

View File

@@ -3,7 +3,7 @@ title: "Task View Button in Taskbar"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2513}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2535}
"WPFToggleTaskView": {
"Content": "Task View Button in Taskbar",
"Description": "If enabled, Task View Button in Taskbar will be shown.",

View File

@@ -3,7 +3,7 @@ title: "Center Taskbar Items"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2531}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2553}
"WPFToggleTaskbarAlignment": {
"Content": "Center Taskbar Items",
"Description": "[Windows 11] If enabled, the Taskbar Items will be shown on the Center, otherwise the Taskbar Items will be shown on the Left.",

View File

@@ -3,7 +3,7 @@ title: "Search Button in Taskbar"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2495}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2517}
"WPFToggleTaskbarSearch": {
"Content": "Search Button in Taskbar",
"Description": "If enabled, Search Button will be on the Taskbar.",

View File

@@ -3,7 +3,7 @@ title: "Verbose Messages During Logon"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2247}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2269}
"WPFToggleVerboseLogon": {
"Content": "Verbose Messages During Logon",
"Description": "Show detailed messages during the login process for troubleshooting and diagnostics.",

View File

@@ -3,7 +3,7 @@ title: "Disable ConsumerFeatures"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1291}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1304}
"WPFTweaksConsumerFeatures": {
"Content": "Disable ConsumerFeatures",
"Description": "Windows will not automatically install any games, third-party apps, or application links from the Windows Store for the signed-in user. Some default Apps will be inaccessible (eg. Phone Link).",

View File

@@ -3,7 +3,7 @@ title: "Delete Temporary Files"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2038}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2060}
"WPFTweaksDeleteTempFiles": {
"Content": "Delete Temporary Files",
"Description": "Erases TEMP Folders.",

View File

@@ -3,7 +3,7 @@ title: "Disable Explorer Automatic Folder Discovery"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2634}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2656}
"WPFTweaksDisableExplorerAutoDiscovery": {
"Content": "Disable Explorer Automatic Folder Discovery",
"Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable File Explorer grouping.",

View File

@@ -0,0 +1,18 @@
---
title: "Disable Microsoft Store search results"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=125}
"WPFTweaksDisableStoreSearch": {
"Content": "Disable Microsoft Store search results",
"Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.",
"category": "Essential Tweaks",
"panel": "1",
"InvokeScript": [
"icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /deny Everyone:F"
],
"UndoScript": [
"icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /grant Everyone:F"
],
```

View File

@@ -3,7 +3,7 @@ title: "Run Disk Cleanup"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2025}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2047}
"WPFTweaksDiskCleanup": {
"Content": "Run Disk Cleanup",
"Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.",

View File

@@ -3,7 +3,7 @@ title: "Enable End Task With Right Click"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1763}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1785}
"WPFTweaksEndTaskOnTaskbar": {
"Content": "Enable End Task With Right Click",
"Description": "Enables option to end task when right clicking a program in the taskbar.",

View File

@@ -3,7 +3,7 @@ title: "Disable Location Tracking"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=125}
```json {filename="config/tweaks.json",linenos=inline,linenostart=138}
"WPFTweaksLocation": {
"Content": "Disable Location Tracking",
"Description": "Disables Location Tracking.",

View File

@@ -3,7 +3,7 @@ title: "Disable Powershell 7 Telemetry"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1779}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1801}
"WPFTweaksPowershell7Tele": {
"Content": "Disable Powershell 7 Telemetry",
"Description": "Creates an Environment Variable called 'POWERSHELL_TELEMETRY_OPTOUT' with a value of '1' which will tell PowerShell 7 to not send Telemetry Data.",

View File

@@ -3,7 +3,7 @@ title: "Create Restore Point"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1736}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1758}
"WPFTweaksRestorePoint": {
"Content": "Create Restore Point",
"Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications.",

View File

@@ -3,7 +3,7 @@ title: "Set Services to Manual"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=162}
```json {filename="config/tweaks.json",linenos=inline,linenostart=175}
"WPFTweaksServices": {
"Content": "Set Services to Manual",
"Description": "Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand.",

View File

@@ -3,7 +3,7 @@ title: "Disable Telemetry"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1307}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1320}
"WPFTweaksTelemetry": {
"Content": "Disable Telemetry",
"Description": "Disables Microsoft Telemetry.",

View File

@@ -3,7 +3,7 @@ title: "Disable Windows Platform Binary Table (WPBT)"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1892}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1914}
"WPFTweaksWPBT": {
"Content": "Disable Windows Platform Binary Table (WPBT)",
"Description": "If enabled, WPBT allows your computer vendor to execute programs at boot time, such as anti-theft software, software drivers, as well as force install software without user consent. Poses potential security risk.",

View File

@@ -3,7 +3,7 @@ title: "Adobe Network Block"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1973}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1995}
"WPFTweaksBlockAdobeNet": {
"Content": "Adobe Network Block",
"Description": "Reduces user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",

View File

@@ -3,7 +3,7 @@ title: "Brave Debloat"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1126}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1139}
"WPFTweaksBraveDebloat": {
"Content": "Brave Debloat",
"Description": "Disables various annoyances like Brave Rewards, Leo AI, Crypto Wallet and VPN.",

View File

@@ -3,7 +3,7 @@ title: "Remove ALL MS Store Apps - NOT RECOMMENDED"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1647}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1669}
"WPFTweaksDeBloat": {
"Content": "Remove ALL MS Store Apps - NOT RECOMMENDED",
"Description": "USE WITH CAUTION!!! This will remove ALL Microsoft Store apps.",

View File

@@ -3,7 +3,7 @@ title: "Disable Background Apps"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2111}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2133}
"WPFTweaksDisableBGapps": {
"Content": "Disable Background Apps",
"Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Windows 11.",

View File

@@ -3,7 +3,7 @@ title: "Disable Fullscreen Optimizations"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2127}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2149}
"WPFTweaksDisableFSO": {
"Content": "Disable Fullscreen Optimizations",
"Description": "Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen.",

View File

@@ -3,7 +3,7 @@ title: "Disable IPv6"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2089}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2111}
"WPFTweaksDisableIPv6": {
"Content": "Disable IPv6",
"Description": "Disables IPv6.",

View File

@@ -3,7 +3,7 @@ title: "Disable Notification Tray/Calendar"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1950}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1972}
"WPFTweaksDisableNotifications": {
"Content": "Disable Notification Tray/Calendar",
"Description": "Disables all Notifications INCLUDING Calendar.",

View File

@@ -3,7 +3,7 @@ title: "Set Display for Performance"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1534}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1547}
"WPFTweaksDisplay": {
"Content": "Set Display for Performance",
"Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.",

View File

@@ -3,7 +3,7 @@ title: "Edge Debloat"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1170}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1183}
"WPFTweaksEdgeDebloat": {
"Content": "Edge Debloat",
"Description": "Disables various telemetry options, popups, and other annoyances in Edge.",

View File

@@ -3,7 +3,7 @@ title: "Prefer IPv4 over IPv6"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2051}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2073}
"WPFTweaksIPv46": {
"Content": "Prefer IPv4 over IPv6",
"Description": "Setting the IPv4 preference can have latency and security benefits on private networks where IPv6 is not configured.",

View File

@@ -3,7 +3,7 @@ title: "Block Razer Software Installs"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1908}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1930}
"WPFTweaksRazerBlock": {
"Content": "Block Razer Software Installs",
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",

View File

@@ -3,7 +3,7 @@ title: "Disable Microsoft Copilot"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1808}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1830}
"WPFTweaksRemoveCopilot": {
"Content": "Disable Microsoft Copilot",
"Description": "Disables MS Copilot AI built into Windows since 23H2.",

View File

@@ -3,7 +3,7 @@ title: "Remove Microsoft Edge"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1429}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1442}
"WPFTweaksRemoveEdge": {
"Content": "Remove Microsoft Edge",
"Description": "Unblocks Microsoft Edge uninstaller restrictions then uses that uninstaller to remove Microsoft Edge.",

View File

@@ -3,7 +3,7 @@ title: "Remove Gallery from explorer"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1517}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1530}
"WPFTweaksRemoveGallery": {
"Content": "Remove Gallery from explorer",
"Description": "Removes the Gallery from Explorer and sets This PC as default.",

View File

@@ -3,7 +3,7 @@ title: "Remove Home from Explorer"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1498}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1511}
"WPFTweaksRemoveHome": {
"Content": "Remove Home from Explorer",
"Description": "Removes the Home from Explorer and sets This PC as default.",

View File

@@ -3,7 +3,7 @@ title: "Remove OneDrive"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1461}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1474}
"WPFTweaksRemoveOneDrive": {
"Content": "Remove OneDrive",
"Description": "Denies permission to remove OneDrive user files, then uses its own uninstaller to remove it and restores the original permission afterward.",

View File

@@ -3,7 +3,7 @@ title: "Set Classic Right-Click Menu"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2003}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2025}
"WPFTweaksRightClickMenu": {
"Content": "Set Classic Right-Click Menu",
"Description": "Restores the classic context menu when right-clicking in File Explorer, replacing the simplified Windows 11 version.",

View File

@@ -3,7 +3,7 @@ title: "Disable Storage Sense"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1792}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1814}
"WPFTweaksStorage": {
"Content": "Disable Storage Sense",
"Description": "Storage Sense deletes temp files automatically.",

View File

@@ -3,7 +3,7 @@ title: "Disable Teredo"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2067}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2089}
"WPFTweaksTeredo": {
"Content": "Disable Teredo",
"Description": "Teredo network tunneling is a IPv6 feature that can cause additional latency, but may cause problems with some games.",

View File

@@ -3,7 +3,7 @@ title: "Set Time to UTC (Dual Boot)"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1445}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1458}
"WPFTweaksUTC": {
"Content": "Set Time to UTC (Dual Boot)",
"Description": "Essential for computers that are dual booting. Fixes the time sync with Linux Systems.",

View File

@@ -3,12 +3,21 @@ title: "Remove Xbox & Gaming Components"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=1633}
```json {filename="config/tweaks.json",linenos=inline,linenostart=1646}
"WPFTweaksXboxRemoval": {
"Content": "Remove Xbox & Gaming Components",
"Description": "Removes Xbox services, the Xbox app, Game Bar, and related authentication components.",
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"registry": [
{
"Path": "KCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR",
"Name": "AppCaptureEnabled",
"Value": "0",
"Type": "DWord",
"OriginalValue": "1"
}
],
"appx": [
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",
@@ -17,3 +26,9 @@ description: ""
"Microsoft.XboxGamingOverlay"
],
```
## Registry Changes
Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.
You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).

View File

@@ -3,7 +3,7 @@ title: "DNS"
description: ""
---
```json {filename="config/tweaks.json",linenos=inline,linenostart=2610}
```json {filename="config/tweaks.json",linenos=inline,linenostart=2632}
"WPFchangedns": {
"Content": "DNS",
"category": "z__Advanced Tweaks - CAUTION",

View File

@@ -59,17 +59,19 @@ function Reset-WPFCheckBoxes {
$sync.selectedApps | Foreach-Object { Add-SelectedAppsMenuItem -name $($sync.configs.applicationsHashtable.$_.Content) -key $_ }
if($doToggles) {
# Restore toggle switch states
# Restore toggle switch states from imported config.
# Only act on toggles that are explicitly listed in the import — toggles absent
# from the export file were not part of the saved config and should keep whatever
# state the live system already has (set during UI initialisation via Get-WinUtilToggleStatus).
$importedToggles = $sync.selectedToggles
$allToggles = $sync.GetEnumerator() | Where-Object { $_.Key -like "WPFToggle*" -and $_.Value -is [System.Windows.Controls.CheckBox] }
foreach ($toggle in $allToggles) {
if ($importedToggles -contains $toggle.Key) {
$sync[$toggle.Key].IsChecked = $true
Write-Debug "Restoring toggle: $($toggle.Key) = checked"
} else {
$sync[$toggle.Key].IsChecked = $false
Write-Debug "Restoring toggle: $($toggle.Key) = unchecked"
}
# Toggles not present in the import are intentionally left untouched;
# their current UI state already reflects the real system state.
}
}
}

View File

@@ -94,7 +94,14 @@ function Invoke-WPFImpex {
Update-WinUtilSelections -flatJson $flattenedJson
if (!$PARAM_NOUI) {
Reset-WPFCheckBoxes -doToggles $true
# Set flag so toggle Checked/Unchecked events don't trigger registry writes
# while we're programmatically restoring UI state from the imported config
$sync.ImportInProgress = $true
try {
Reset-WPFCheckBoxes -doToggles $true
} finally {
$sync.ImportInProgress = $false
}
}
}
} catch {

View File

@@ -193,13 +193,19 @@ function Invoke-WPFUIElements {
$sync[$entryInfo.Name].Add_Checked({
[System.Object]$Sender = $args[0]
Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $Sender.name
Invoke-WinUtilTweaks $Sender.name
# Skip applying tweaks while an import is restoring toggle states
if (-not $sync.ImportInProgress) {
Invoke-WinUtilTweaks $Sender.name
}
})
$sync[$entryInfo.Name].Add_Unchecked({
[System.Object]$Sender = $args[0]
Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkboxName $Sender.name
Invoke-WinUtiltweaks $Sender.name -undo $true
# Skip undoing tweaks while an import is restoring toggle states
if (-not $sync.ImportInProgress) {
Invoke-WinUtiltweaks $Sender.name -undo $true
}
})
}
}