Added option to enable 'End Task' option in the taskbar right click menu

This commit is contained in:
Raphire
2025-04-16 12:31:18 +02:00
parent 7fc4a1fba0
commit e53709653d
7 changed files with 31 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ param (
[switch]$DisableRecall,
[switch]$DisableWidgets, [switch]$HideWidgets,
[switch]$DisableChat, [switch]$HideChat,
[switch]$EnableEndTask,
[switch]$ClearStart,
[switch]$ClearStartAllUsers,
[switch]$RevertContextMenu,
@@ -969,6 +970,15 @@ function DisplayCustomModeOptions {
AddParameter 'HideChat' 'Hide the chat (meet now) icon from the taskbar'
}
}
# Only show this options for Windows users running build 22631 or later
if ($WinVersion -ge 22631){
Write-Output ""
if ($( Read-Host -Prompt " Enable the 'End Task' option in the taskbar right click menu? (y/n)" ) -eq 'y') {
AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu"
}
}
}
Write-Output ""
@@ -1496,6 +1506,10 @@ else {
RegImport "> Hiding the chat icon from the taskbar..." "Disable_Chat_Taskbar.reg"
continue
}
'EnableEndTask' {
RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg"
continue
}
'ExplorerToHome' {
RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg"
continue