Added option to disable start menu mobile devices integration

This commit is contained in:
Raphire
2025-06-11 22:04:17 +02:00
parent d7c47a587c
commit a2095b2b60
7 changed files with 39 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ param (
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
[switch]$HideTaskview,
[switch]$DisableStartRecommended,
[switch]$DisableStartPhoneLink,
[switch]$DisableCopilot,
[switch]$DisableRecall,
[switch]$DisableWidgets, [switch]$HideWidgets,
@@ -995,6 +996,12 @@ function DisplayCustomModeOptions {
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 ""
if ($( Read-Host -Prompt " Disable the Phone Link mobile devices integration in the start menu? (y/n)" ) -eq 'y') {
AddParameter 'DisableStartPhoneLink' 'Disable the Phone Link mobile devices integration in the start menu.'
}
}
}
@@ -1518,10 +1525,6 @@ switch ($script:Params.Keys) {
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg"
continue
}
'DisableSettings365Ads' {
RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg"
continue
}
{$_ -in "DisableLockscrTips", "DisableLockscreenTips"} {
RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg"
continue
@@ -1530,6 +1533,10 @@ switch ($script:Params.Keys) {
RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg"
continue
}
'DisableSettings365Ads' {
RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg"
continue
}
'DisableSettingsHome' {
RegImport "> Disabling the Settings Home page..." "Disable_Settings_Home.reg"
continue
@@ -1594,6 +1601,10 @@ switch ($script:Params.Keys) {
RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg"
continue
}
'DisableStartPhoneLink' {
RegImport "> Disabling the Phone Link mobile devices integration in the start menu..." "Disable_Phone_Link_In_Start.reg"
continue
}
'TaskbarAlignLeft' {
RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg"
continue