From bfbb6435439b4eceaa3feaa732a3f8ababd3ec50 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 17 Nov 2025 20:11:39 +0200 Subject: [PATCH] Update-WPFTweaksEndTaskOnTaskbar (#3714) * Update tweaks.json * Syntax fix on WPFTweaksEndTaskOnTaskbar * Merge branch 'ChrisTitusTech:main' into Update-WPFTweaksEndTaskOnTaskbar --- config/tweaks.json | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index ff64cf29..9f13928b 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2450,31 +2450,14 @@ "category": "Essential Tweaks", "panel": "1", "Order": "a006_", - "InvokeScript": [ - "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" - $name = \"TaskbarEndTask\" - $value = 1 - - # Ensure the registry key exists - if (-not (Test-Path $path)) { - New-Item -Path $path -Force | Out-Null + "registry": [ + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings", + "Name": "TaskbarEndTask", + "Type": "DWord", + "Value": "1", + "OriginalValue": "" } - - # Set the property, creating it if it doesn't exist - New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" - ], - "UndoScript": [ - "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" - $name = \"TaskbarEndTask\" - $value = 0 - - # Ensure the registry key exists - if (-not (Test-Path $path)) { - New-Item -Path $path -Force | Out-Null - } - - # Set the property, creating it if it doesn't exist - New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/endtaskontaskbar" },