mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Added option to enable 'End Task' option in the taskbar right click menu
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user