From e496aa3af0f1aaf9dc030b3cc4134a6975cca87c Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:53:53 +0100 Subject: [PATCH] Add option to disable location services (#478) --- Assets/Features.json | 13 +++++++++++++ README.md | 3 ++- Regfiles/Disable_Location_Services.reg | 9 +++++++++ Regfiles/Sysprep/Disable_Location_Services.reg | 9 +++++++++ Regfiles/Undo/Enable_Location_Services.reg | 9 +++++++++ Scripts/Get.ps1 | 1 + Win11Debloat.ps1 | 1 + 7 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 Regfiles/Disable_Location_Services.reg create mode 100644 Regfiles/Sysprep/Disable_Location_Services.reg create mode 100644 Regfiles/Undo/Enable_Location_Services.reg diff --git a/Assets/Features.json b/Assets/Features.json index 5cedcf1..7299d8a 100644 --- a/Assets/Features.json +++ b/Assets/Features.json @@ -371,6 +371,19 @@ "MinVersion": null, "MaxVersion": null }, + { + "FeatureId": "DisableLocationServices", + "Label": "Windows location services & app location access", + "ToolTip": "This will turn off Windows Location Services and deny apps access to your location.", + "Category": "Privacy & Suggested Content", + "Action": "Disable", + "RegistryKey": "Disable_Location_Services.reg", + "ApplyText": "> Disabling Windows location services and app location access...", + "UndoAction": "Enable", + "RegistryUndoKey": "Enable_Location_Services.reg", + "MinVersion": null, + "MaxVersion": null + }, { "FeatureId": "DisableSearchHistory", "Label": "local Windows Search history", diff --git a/README.md b/README.md index 5552bb0..7c3bf08 100755 --- a/README.md +++ b/README.md @@ -86,8 +86,9 @@ Below is an overview of the key features and functionality offered by Win11Deblo #### Privacy & Suggested Content - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. -- Disable local Windows search history. - Disable tips, tricks, suggestions & ads across Windows. +- Disable Windows location services & app location access. +- Disable local Windows search history. - Disable 'Windows Spotlight' and tips & tricks on the lock screen. - Disable 'Windows Spotlight' desktop background option. - Disable ads, suggestions and the MSN news feed in Microsoft Edge. diff --git a/Regfiles/Disable_Location_Services.reg b/Regfiles/Disable_Location_Services.reg new file mode 100644 index 0000000..0930d84 --- /dev/null +++ b/Regfiles/Disable_Location_Services.reg @@ -0,0 +1,9 @@ +Windows Registry Editor Version 5.00 + +; Disable the Windows Location Service (system-wide) +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Deny" + +; Deny app access to location for the current user +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Deny" diff --git a/Regfiles/Sysprep/Disable_Location_Services.reg b/Regfiles/Sysprep/Disable_Location_Services.reg new file mode 100644 index 0000000..e63dd75 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Location_Services.reg @@ -0,0 +1,9 @@ +Windows Registry Editor Version 5.00 + +; Disable the Windows Location Service (system-wide) +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Deny" + +; Deny app access to location for new/default users +[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Deny" diff --git a/Regfiles/Undo/Enable_Location_Services.reg b/Regfiles/Undo/Enable_Location_Services.reg new file mode 100644 index 0000000..89976bf --- /dev/null +++ b/Regfiles/Undo/Enable_Location_Services.reg @@ -0,0 +1,9 @@ +Windows Registry Editor Version 5.00 + +; Re-enable the Windows Location Service (system-wide) +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Allow" + +; Re-allow app access to location for the current user +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location] +"Value"="Allow" diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 65ea223..b9cfcf8 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -36,6 +36,7 @@ param ( [switch]$DisableDesktopSpotlight, [switch]$DisableLockscreenTips, [switch]$DisableSuggestions, + [switch]$DisableLocationServices, [switch]$DisableEdgeAds, [switch]$DisableBraveBloat, [switch]$DisableSettings365Ads, diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index f8c2eb2..467a76e 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -38,6 +38,7 @@ param ( [switch]$DisableDesktopSpotlight, [switch]$DisableLockscreenTips, [switch]$DisableSuggestions, + [switch]$DisableLocationServices, [switch]$DisableEdgeAds, [switch]$DisableBraveBloat, [switch]$DisableSettings365Ads,