mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-24 00:07:24 -05:00
Refactor process termination for explorer.exe in tweaks.json (#3375)
This commit is contained in:
parent
d22865d79b
commit
290292ec94
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user