From 0ef789cc3aac864f1784186a91f8ccfd2c0ca67c Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Wed, 8 Jul 2026 17:54:13 +0200 Subject: [PATCH] Add option to prevent auto install of device apps & add LG monitor app removal (#695) * Add support for removing LG monitor app * Add option to prevent auto install of device companion apps via Windows Update * Update CONTRIBUTING.md with missing Apps.json fields --- .github/CONTRIBUTING.md | 18 +++++++++++++++++- Config/Apps.json | 11 ++++++++++- Config/Features.json | 13 +++++++++++++ Regfiles/Disable_Device_Auto_App_Download.reg | Bin 0 -> 464 bytes .../Disable_Device_Auto_App_Download.reg | Bin 0 -> 464 bytes .../Undo/Enable_Device_Auto_App_Download.reg | Bin 0 -> 432 bytes Scripts/Get.ps1 | 1 + Win11Debloat.ps1 | 1 + 8 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 Regfiles/Disable_Device_Auto_App_Download.reg create mode 100644 Regfiles/Sysprep/Disable_Device_Auto_App_Download.reg create mode 100644 Regfiles/Undo/Enable_Device_Auto_App_Download.reg diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 070c47b..dbe7155 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -159,10 +159,26 @@ To add a new app that can be removed via Win11Debloat: "FriendlyName": "Display Name", "AppId": "AppPackageIdentifier", "Description": "Brief description of the app", - "SelectedByDefault": true|false + "SelectedByDefault": false, + "Recommendation": "optional", + "RemovalMethod": "Appx" } ``` + **Field Descriptions**: + + - `FriendlyName`: Display name shown in the GUI. + - `AppId`: The `AppPackageIdentifier` from `Get-AppxPackage` or the `Id` from `winget list`, depending on removal method. + - `Description`: Brief description of the app shown in the GUI. + - `SelectedByDefault`: Set to `true` only for apps that are largely considered bloatware, otherwise set to `false`. + - `Recommendation`: Indicates how strongly the app is recommended for removal. One of: + - `safe` — safe to remove for most users + - `optional` — can be safely removed if the user doesn't need the app + - `unsafe` — should only remove if the user knows what they are doing + - `RemovalMethod`: The method used to remove the app. One of: + - `Appx` — remove as a standard Appx package via `Remove-AppxPackage` (most apps) + - `WinGet` — remove via WinGet (`winget uninstall`). Use for non-Appx apps such as Microsoft Copilot. + 3. **Follow the Guidelines**: - Use clear, user-friendly names for `FriendlyName` diff --git a/Config/Apps.json b/Config/Apps.json index f459bec..84c9010 100644 --- a/Config/Apps.json +++ b/Config/Apps.json @@ -921,6 +921,14 @@ "Recommendation": "optional", "RemovalMethod": "Appx" }, + { + "FriendlyName": "LG Monitor App", + "AppId": "LGElectronics.LGMonitorApp", + "Description": "LG OEM software for controlling your LG monitor, Windows Update may silently reinstall this app if you have an LG monitor connected", + "SelectedByDefault": false, + "Recommendation": "optional", + "RemovalMethod": "Appx" + }, { "FriendlyName": "HP AI Experience Center", "AppId": "AD2F1837.HPAIExperienceCenter", @@ -1132,7 +1140,7 @@ ] }, { - "Name": "OEM software (Dell, HP, Lenovo)", + "Name": "OEM software (Dell, HP, Lenovo, LG)", "AppIds": [ "AD2F1837.HPAIExperienceCenter", "AD2F1837.HPConnectedMusic", @@ -1156,6 +1164,7 @@ "AD2F1837.myHP", "E046963F.LenovoCompanion", "LenovoCompanyLimited.LenovoVantageService", + "LGElectronics.LGMonitorApp", "DellInc.DellSupportAssistforPCs", "DellInc.DellDigitalDelivery", "DellInc.DellMobileConnect" diff --git a/Config/Features.json b/Config/Features.json index b3ad689..243f5f7 100644 --- a/Config/Features.json +++ b/Config/Features.json @@ -1369,6 +1369,19 @@ "MinVersion": null, "MaxVersion": null }, + { + "FeatureId": "DisableDeviceAutoAppDownload", + "Label": "Prevent Windows from auto-downloading device companion apps", + "ToolTip": "Stops Windows from silently downloading device companion apps via Windows Update when you connect certain devices, like monitors from LG and Alienware. These devices will still work as expected, this only stops Windows Update from automatically installing additional apps without consent.", + "Category": "Windows Update", + "RegistryKey": "Disable_Device_Auto_App_Download.reg", + "ApplyText": "Preventing automatic download of device companion apps", + "UndoLabel": "Allow automatic download of device companion apps", + "ApplyUndoText": "Allowing automatic download of device companion apps", + "RegistryUndoKey": "Enable_Device_Auto_App_Download.reg", + "MinVersion": null, + "MaxVersion": null + }, { "FeatureId": "ForceRemoveEdge", "Label": "Forcefully uninstall Microsoft Edge. NOT RECOMMENDED!", diff --git a/Regfiles/Disable_Device_Auto_App_Download.reg b/Regfiles/Disable_Device_Auto_App_Download.reg new file mode 100644 index 0000000000000000000000000000000000000000..9e58b59ec1d2f42ae3c05b3b571de2ab0c7883fd GIT binary patch literal 464 zcmZ9I%}T>i5Ju11rwBfP=)#TSLaIg4)>6eHMoMT?4cfFMvB8&D&%N1{a7k{ypPBhG zf4?&dN|tPBsY#fU^DbA@Q1K&kty+jS;)G}QO0^J|;!}<|_8fT5#S_(>olj{^LdJKj zUHjEowUFzkm3-MF6D8iO=-slF4X(}|W`tCk?^@SFEhu@cYDEnn>T8)M_6lldmRD}L zGy4m3?s;IqrT3hX_dxBIv1-br+K?w^^3%vnoYQ3}>{{y?#YB~S$gpxks(*iPDOY-T v(U+TN)XVc`qQl;9_AC1Spi5Ju11rwBfP=)#TSLaIg4)>6eHMoMT?4cfFMvB8&D&%N1{a7k{ypPBhG zf4?&dN|tPBsY#fU^DbA@Q1K&kty+jS;)G}QO0^J|;!}<|_8fT5#S_(>olj{^LdJKj zUHjEowUFzkm3-MF6D8iO=-slF4X(}|W`tCk?^@SFEhu@cYDEnn>T8)M_6lldmRD}L zGy4m3?s;IqrT3hX_dxBIv1-br+K?w^^3%vnoYQ3}>{{y?#YB~S$gpxks(*iPDOY-T v(U+TN)XVc`qQl;9_AC1SpS6h_b5rwHy9H?G8mREuI$OBIV4kmZDmmaIfB|mf}i$%ppgfJOk;UexibzLDuvR#DB(@yI3D=6>Lr z2{(*PHL*_pkJPT1s%G4(jk#kXKab4JJwt}lsjZ$gCTiqEhP9hA{eRyq<6Q4&^cChw kck(=$XrGy{7F>n5>i%`?`o}tJZ#9i`dh3QaC!BJ?FCKPJbpQYW literal 0 HcmV?d00001 diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 4114e79..0688dd3 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -33,6 +33,7 @@ param ( [switch]$DisableUpdateASAP, [switch]$PreventUpdateAutoReboot, [switch]$DisableDeliveryOptimization, + [switch]$DisableDeviceAutoAppDownload, [switch]$DisableBing, [switch]$DisableStoreSearchSuggestions, [switch]$DisableDesktopSpotlight, diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index fe046f4..aece5e4 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -30,6 +30,7 @@ param ( [switch]$DisableUpdateASAP, [switch]$PreventUpdateAutoReboot, [switch]$DisableDeliveryOptimization, + [switch]$DisableDeviceAutoAppDownload, [switch]$DisableBing, [switch]$DisableNotifications, [switch]$DisableStoreSearchSuggestions,