Skip to content

Commit

Permalink
v4.9.0
Browse files Browse the repository at this point in the history
- End Task button function has been added to Taskbar
  • Loading branch information
caglaryalcin committed Aug 1, 2024
1 parent 7763b5f commit 4dc2bab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,27 @@ Function SystemSettings {

EnableShowDesktop

function EnableEndTaskButton {
try {
Write-Host "Enabling End Task Button..." -NoNewline
$keyPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
$subKey = "TaskbarDeveloperSettings"
$propertyName = "TaskbarEndTask"
$propertyValue = 1

if (-not (Test-Path -Path "$keyPath\$subKey")) {
New-Item -Path $keyPath -Name $subKey -Force
}

Set-ItemProperty -Path "$keyPath\$subKey" -Name $propertyName -Value $propertyValue -Type DWord
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
}

EnableEndTaskButton

Function UnpinEverything {
Param(
[string]$RemoveUnpin
Expand Down

0 comments on commit 4dc2bab

Please sign in to comment.