From 290292ec9415f1809ac8bccd9fac6d622a6e81ee Mon Sep 17 00:00:00 2001 From: Martin Wiethan <47688561+Marterich@users.noreply.github.com> Date: Fri, 23 May 2025 18:04:26 +0200 Subject: [PATCH] Refactor process termination for explorer.exe in tweaks.json (#3375) --- config/tweaks.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index d86ee0aa..b821b09f 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -3087,8 +3087,7 @@ " New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" Write-Host Restarting explorer.exe ... - $process = Get-Process -Name \"explorer\" - Stop-Process -InputObject $process + Stop-Process -Name \"explorer\" -Force " ], "UndoScript": [ @@ -3096,8 +3095,7 @@ Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Recurse -Confirm:$false -Force # Restarting Explorer in the Undo Script might not be necessary, as the Registry change without restarting Explorer does work, but just to make sure. Write-Host Restarting explorer.exe ... - $process = Get-Process -Name \"explorer\" - Stop-Process -InputObject $process + Stop-Process -Name \"explorer\" -Force " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/rightclickmenu"