Added option to disable & hide the recommended section from the start menu #187

This commit is contained in:
Raphire
2025-02-03 21:21:35 +01:00
parent 721790f1c3
commit 0aff2ae02d
5 changed files with 62 additions and 6 deletions

View File

@@ -1018,7 +1018,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS
Write-Output ""
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and related services? (y/n)" ) -eq 'y') {
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar, start menu and related services? (y/n)" ) -eq 'y') {
# Only show these specific options for Windows 11 users running build 22000 or later
if ($WinVersion -ge 22000){
Write-Output ""
@@ -1077,6 +1077,14 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS
AddParameter 'HideChat' 'Hide the chat (meet now) icon from the taskbar'
}
}
if ($WinVersion -ge 22000){
Write-Output ""
if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.'
}
}
}
Write-Output ""
@@ -1406,6 +1414,10 @@ else {
RegImport "> Hiding the taskview button from the taskbar..." "Hide_Taskview_Taskbar.reg"
continue
}
'DisableStartRecommended' {
RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg"
continue
}
'DisableCopilot' {
RegImport "> Disabling & removing Windows Copilot..." "Disable_Copilot.reg"