mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 14:01:31 -06:00
fixed end task with right click (#2331)
This commit is contained in:
parent
3245756935
commit
1d01b7490f
@ -2294,14 +2294,30 @@
|
|||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a006_",
|
"Order": "a006_",
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\"
|
||||||
Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" -Name \"TaskbarEndTask\" -Type \"DWord\" -Value \"1\"
|
$name = \"TaskbarEndTask\"
|
||||||
"
|
$value = 1
|
||||||
|
|
||||||
|
# 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"
|
||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\"
|
||||||
Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" -Name \"TaskbarEndTask\" -Type \"DWord\" -Value \"0\"
|
$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"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"WPFTweaksPowershell7": {
|
"WPFTweaksPowershell7": {
|
||||||
|
Loading…
Reference in New Issue
Block a user