Privacy and Security Enable or Disable Location Services in Windows 11


Location_banner.webp

This tutorial will show you how to enable or disable location services for all users on your Windows 11 device.

Microsoft operates a location service that helps determine the precise geographic location of your Windows device. The precise location of your device allows apps to give you directions, show shops and restaurants that are near you, and more.

Many apps and services request location information from your device, and the Windows location service gives you control over which apps are allowed to access your precise location.

How the location settings work

Location services is a device-wide setting that can be controlled by the device administrator. When turned on, it enables certain Windows features—such as auto-setting the time zone or Find my device—to function properly. When this location setting is enabled, the Microsoft location service will use a combination of global positioning service (GPS), nearby wireless access points, cell towers, and your IP address (or default location) to determine your device’s location. Depending on the capabilities of your device, your device’s location can be determined with varying degrees of accuracy and may in some cases be determined precisely.

If you have turned on Location services, your device sends location information (including wireless access point information, cellular tower information, and precise GPS location if available) to Microsoft after removing any data identifying the person or device before leaving the device. This de-identified copy of location information is used to improve Microsoft location services and, in some instances, shared with our location service provider partners, currently HERE and Skyhook, to improve the location services of the provider.

Additionally, with this setting turned on, each user on the device can allow apps to use their device’s location and location history to deliver location-aware services as precisely as their device supports. If you grant a specific app access to your device’s location on the settings page, that app will have access to precise location information. Otherwise the location information provided to the app has lower accuracy. When your location is used by a location-aware app or Windows service or feature, your location information and recent location history are stored on your device.

If an app or feature accesses the device's location and you are signed in with your Microsoft account, your last-known location information is also saved to the cloud, where it is available across your devices to other apps or services that use your Microsoft account and for which you've granted permission. If you are signed in with your Microsoft account and your device cannot reliably determine your current location on its own (such as when you are in a building or basement), apps or services can use your last-known location from your location history that is stored in the cloud if it is available. Data about a Windows device's recent location history is also stored on the device even if no Microsoft account is in use, and certain apps and Windows features can access this location history.

There are some exceptions to how your device’s location can be determined that are not directly managed by the location settings.

Desktop apps are a specific type of app that won’t ask for separate permission to discover your device location information and won’t appear in the list that allows you to choose apps that can use your location. What are desktop apps? They’re usually downloaded from the internet or installed with some type of media (such as a CD, DVD, or USB storage device). They’re launched using an .EXE or .DLL file, and they typically run on your device, unlike web-based apps (which run in the cloud).

Even when you’ve turned off Location services in Windows, some third-party apps and services could use other technologies (such as Bluetooth, Wi-Fi, cellular modem, etc.) to determine your device’s location with varying degrees of accuracy. Microsoft requires third-party software developers that develop apps for our Microsoft Store or develop apps using Microsoft tools to respect the Windows location settings unless you’ve provided any legally required consent to have the third-party developer determine your location. However, to further reduce the risk that an app or service can determine your location when the Windows device location setting is off, you should only install apps and services from trusted sources. For more comprehensive protection of your location, you could consider disabling radio-based components of your device such as Wi-Fi, Bluetooth, cellular modem, and GPS components, which might be used by an app to determine your precise location. However, doing so will also impair other experiences such as calling (including emergency calling), messaging, internet connectivity, and connecting to peripheral devices like your headphones. Please read the privacy policies of the apps and services you’ve installed to learn more about how they use your device’s location.

To facilitate getting help in an emergency, whenever you make an emergency call, Windows will attempt to determine and share your precise location, regardless of your location settings. In addition, your mobile operator will have access to your device’s location if your device has a SIM card or is otherwise using a cellular service.

Starting with Windows 11 build 23486, if location settings are disabled, a warning is now shown to the user, urging them to enable location settings to ensure accurate time zone adjustments. This warning provides helpful information to the user, helping them understand why their time zone may not be correct and guiding them towards resolving the issue.

Starting with Windows 11 build 26220.8271 (Beta 25H2) and build 26300.8276 (Dev 25H2), based on feedback, Microsoft is providing clarity regarding location options in Settings > Privacy & Security > Location. When Location services is turned off, options like Default location and Allow location override are unavailable because apps and services aren’t receiving location info. To make that clearer, these options will now appear disabled (greyed out) until Location services is turned back on.

You must be signed in as an administrator to turn on/off or enable/disable location services for the device.

Location services require the Geolocation Service to be enabled and running.

Set time zone automatically will be grayed out and disabled if you turn off or disable location services.

If one or more apps are currently using your device location through the Windows location service, you’ll see the Location notification icon on the taskbar corner to let you know.

For the Allow location override setting to work, the Location services setting for both the local and remote devices needs to be turned on. Additionally, the app being used to manage the remote connection should have been allowed access to use location.




Contents

  • Option One: Turn On or Off Location Services in Settings
  • Option Two: Turn On or Off Location Services using Command
  • Option Three: Enable or Disable Location Services in Local Group Policy Editor
  • Option Four: Enable or Disable Location Services using REG file


EXAMPLE: Location notification icon on taskbar corner when an app is using your location

You can over on the location notification icon to see which apps are currently using your location.


Location_notification_icon_on_taskbar_corner.png
Hover_on_location_icon.png





Option One

Turn On or Off Location Services in Settings


1 Open Settings (Win+I).

2 Click/tap on Privacy & security on the left side, and click/tap on Location on the right side. (see screenshot below)


Location_services_Settings-1.png

3 Turn On (default) or Off Location services for what you want. (see screenshots below)

Location_services_Settings-2.png
Location_services_Settings-3.png

4 If you turned off Location services, then click tap on Turn off to confirm. (see screenshot below)

Location_services_Settings-4.webp

5 You can now close Settings if you like.




Option Two

Turn On or Off Location Services using Command


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use into Terminal (Admin), and press Enter to apply. (see screenshot below)

Turn on Location services
SystemSettingsAdminFlows.exe SetCamSystemGlobal location 1

OR

Turn off Location services
SystemSettingsAdminFlows.exe SetCamSystemGlobal location 0

Location_Services_command.webp





Option Three

Enable or Disable Location Services in Local Group Policy Editor


The Local Group Policy Editor is only available in the Windows 11 Pro, Enterprise, and Education editions.

All editions can use Option Four to configure the same policy.


1 Open the Local Group Policy Editor (gpedit.msc).

2 Navigate to the policy location below in the left pane of the Local Group Policy Editor. (see screenshot below)

Computer Configuration > Administrative Templates > Windows Components > Location and Sensors​

Location_services_gpedit-1.png

3 In the right pane of Location and Sensors in the Local Group Policy Editor, double click/tap on the Turn off location policy to edit it. (see screenshot above)

4 Do step 5 (enable) or step 6 (disable) below for what you want.

5 Enable Location Services

This is the default setting to allow using Option One and Option Two.


A) Select (dot) Not Configured, click/tap on OK, and go to step 7 below. (see screenshot below)​

Location_services_gpedit-2.png

6 Disable Location Services

This will disable location services, and prevent using Option One and Option Two.


A) Select (dot) Enabled, click/tap on OK, and go to step 7 below. (see screenshot below)​

Location_services_gpedit-3.png

7 You can now close the Local Group Policy Editor if you like.




Option Four

Enable or Disable Location Services using REG file


1 Do step 2 (enable) or step 3 (disable) below for what you want.


 2. Enable Location Services

This is the default setting to allow using Option One and Option Two.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Enable_location_services.reg​


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy]
"LetAppsAccessLocation"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors]
"DisableLocation"=-


 3. Disable Location Services

This will disable location services, and prevent using Option One and Option Two.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Disable_location_services.reg​


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy]
"LetAppsAccessLocation"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors]
"DisableLocation"=dword:00000001

4 Save the .reg file to your desktop.

5 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

6 Double click/tap on the downloaded .reg file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

Last edited:
Hi Brink,
Do you know a GPO or reg key setting that we can turn this off (for all users)? Thank you
Allow Location Override.PNG
 

My Computer My Computer

At a glance

Windows 11 Enterprise
OS
Windows 11 Enterprise
Computer type
PC/Desktop
Manufacturer/Model
WMI says "To be Filled By OEM"
Keyboard
Plastic
Mouse
I have not seen any lately
Internet Speed
Insert AIM ICON :)
Browser
The first one I find to double click on.
Antivirus
Sandbox
Hi Brink,
Do you know a GPO or reg key setting that we can turn this off (for all users)? Thank you

Hello mate, :alien:

Luckily, disabling location services will also prevent "allow location override" from working.

For the Allow location override setting to work, the Location services setting for both the local and remote devices needs to be turned on. Additionally, the app being used to manage the remote connection should have been allowed access to use location.


 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Nice to know. Thank you for your help!
 

My Computer My Computer

At a glance

Windows 11 Enterprise
OS
Windows 11 Enterprise
Computer type
PC/Desktop
Manufacturer/Model
WMI says "To be Filled By OEM"
Keyboard
Plastic
Mouse
I have not seen any lately
Internet Speed
Insert AIM ICON :)
Browser
The first one I find to double click on.
Antivirus
Sandbox
In the old days, for "location awareness", we used to leave a trail of bread crumbs. :D
 

My Computers My Computers

  • At a glance

    Win 11 Home 26H2 26300.9711AMD Ryzen 7 3700XG.Skill (F4-3200C14D-16GTZKW)EVGA RTX 2070 (08G-P4-2171-KR)
    OS
    Win 11 Home 26H2 26300.9711
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 5302)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Total Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • At a glance

    Windows XP Pro 32bit w/SP3AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Keyboard
    Logitech Classic Keybooard 200
    Mouse
    Logitech Optical M-BT96a
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 15 years?

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Unfortunately, this is not working at all for me. I DOES properly disable location services on Windows 10 systems, but does not appear to work for Windows 11. My Location Services section is still greyed out, and nothing is set via GPO that would be doing this. =\
 

Attachments

  • Image 2023-10-09_004.png
    Image 2023-10-09_004.png
    20.2 KB · Views: 189

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Unfortunately, this is not working at all for me. I DOES properly disable location services on Windows 10 systems, but does not appear to work for Windows 11. My Location Services section is still greyed out, and nothing is set via GPO that would be doing this. =\
Hello, :alien:

Are you joined to a work or school domain that may be overriding this?

If not, did you double check the registry locations in option 4?
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Hello, :alien:

Are you joined to a work or school domain that may be overriding this?

If not, did you double check the registry locations in option 4?
Hey sorry...I'm a dummy. I completely didn't see the option 4 in your tutorial, but that is EXACTLY what I found...before I noticed that you already had it documented in your tutorial. Disregard my response. =\
 

My Computer My Computer

At a glance

Windows 10
OS
Windows 10
Hey sorry...I'm a dummy. I completely didn't see the option 4 in your tutorial, but that is EXACTLY what I found...before I noticed that you already had it documented in your tutorial. Disregard my response. =\
No worries. I'm just glad you got it sorted. :shawn:
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Has anyone been able to setup a keyboard shortcut or at least create a script or .bat file that can enable or disable the location services? Windows 10 had the Action button, but W11 somehow that was deem unnecessary. Using reg entry prompts me with questions. Im looking for a quick way I can enable or disable it.

My current laptop has a customized keyboard button that I can use either a keyboard sequence or script/.bat file. Really would prefer to use that button to manage location status.
 

My Computer My Computer

At a glance

Windows 11CPU Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz16GB
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
HP
CPU
CPU Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Memory
16GB
Screen Resolution
1080
Has anyone been able to setup a keyboard shortcut or at least create a script or .bat file that can enable or disable the location services? Windows 10 had the Action button, but W11 somehow that was deem unnecessary. Using reg entry prompts me with questions. Im looking for a quick way I can enable or disable it.

My current laptop has a customized keyboard button that I can use either a keyboard sequence or script/.bat file. Really would prefer to use that button to manage location status.
Hello amazo19, :alien:

If you like, here's a new tutorial below created just for you to turn on/off Location Services via a context menu.

 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Hello amazo19, :alien:

If you like, here's a new tutorial below created just for you to turn on/off Location Services via a context menu.

First, let me say thanks for responding. Am I supposed to reboot after running the context menu because when I go into Settings > Privacy & Security > Location Services current status is unchanged. Also, could this reg file be changing my desktop color to black? I have changed it back 2x now.
 

My Computer My Computer

At a glance

Windows 11CPU Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz16GB
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
HP
CPU
CPU Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Memory
16GB
Screen Resolution
1080
First, let me say thanks for responding. Am I supposed to reboot after running the context menu because when I go into Settings > Privacy & Security > Location Services current status is unchanged. Also, could this reg file be changing my desktop color to black? I have changed it back 2x now.
You're most welcome. :shawn:

If Settings was open when using the context menu, you'll need to close and reopen that settings page to see (refresh) the change.

It wouldn't have any effect on the desktop background. The commands used in the context menu only change the registry key for the location setting, and give you a UAC prompt first if turning on/off location for the device instead of apps. You'll see a black command prompt quickly open and close as it performs all this.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
I have to run O&O Shutup, which disables location on my machine:

1722615724206.png


I looked at the Local Group Policy Editor, and the settings are set there to be enabled. Is the fix likely by updating the registry?
 

My Computer My Computer

At a glance

Win 11Ryzen 7 6900 HS32 GB RAMRTX 3050ti
OS
Win 11
Computer type
Laptop
Manufacturer/Model
Lenovo
CPU
Ryzen 7 6900 HS
Memory
32 GB RAM
Graphics Card(s)
RTX 3050ti
Option 2 broken now?
After editing the Allow/Deny value in registry, the setting doesn't seem to take effect anymore on latest Windows 11 builds (24H2 or 25H2). I noticed that if I change the setting from Windows GUI there is a new regisrty item "LastSetTime" (which seems to be a timestamp of 100 nanosecond intervals since January 1, 1601) and its saved on the same registry path with Value (Allow/Deny). I wonder if skipping the creation/update of this "LastSetTime" item make Windows to ignore the change now. Can you reproduce the issue?

I've had a script in our organization that runs as system and allows our non-admin users to change Windows Location Services status by modifying the registry value like on Option 2 behalf of user. Now due to this change, it doesn't work anymore even if the Allow / Deny value saves there fine as before.
 

My Computer My Computer

At a glance

Windows 11Mostly Intel
OS
Windows 11
Manufacturer/Model
HP/ASUS/LENOVOY/DELL/CUSTOM
CPU
Mostly Intel
Motherboard
What ever is available
PSU
200-1200W
Mouse
Any mouse
Other Info
1000+ computers
Option 2 broken now?
After editing the Allow/Deny value in registry, the setting doesn't seem to take effect anymore on latest Windows 11 builds (24H2 or 25H2). I noticed that if I change the setting from Windows GUI there is a new regisrty item "LastSetTime" (which seems to be a timestamp of 100 nanosecond intervals since January 1, 1601) and its saved on the same registry path with Value (Allow/Deny). I wonder if skipping the creation/update of this "LastSetTime" item make Windows to ignore the change now. Can you reproduce the issue?

I've had a script in our organization that runs as system and allows our non-admin users to change Windows Location Services status by modifying the registry value like on Option 2 behalf of user. Now due to this change, it doesn't work anymore even if the Allow / Deny value saves there fine as before.

Hello, and welcome to the forum. :alien:

I just tested option 2, and it indeed is no longer working. Even after restarting the computer to apply. I'll look into it more to see if I can find out why.

For now, you can try using option 4 for the policy in your script instead.

Non-admins can already turn on/off Let apps access your location for current user below instead.

 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
I use 2 batch files (one command line) to toggle the location service on/off via policies , no reboot is necessary.
This is useful when access to network adapters is needed.


Turn off:

Code:
cmd /s /c "reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy /v LetAppsAccessLocation /t REG_DWORD /d 2 /f"


loc1.webp



Turn on:

Code:
cmd /s /c "reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy /v LetAppsAccessLocation /t REG_DWORD /d 0 /f"

loc2.webp
 

My Computers My Computers

  • At a glance

    All Branches but StableAMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 232 GB DDR5Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB...
    OS
    All Branches but Stable
    Computer type
    Laptop
    Manufacturer/Model
    Acer Nitro ANV15-51
    CPU
    AMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 2
    Motherboard
    Sportage_RBH
    Memory
    32 GB DDR5
    Graphics Card(s)
    Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB GDDR6
    Sound Card
    AMD/Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (15.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9 144Hz
    Hard Drives
    KINGSTON OM8SEP4512Q-AA 1TB
    Western Digital 256GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 1GB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev-Chrome Dev
    Antivirus
    Windows Defender
  • At a glance

    Windows 11 BetaAMD A9-94208 GB of DDR4AMD Radeon R5
    Operating System
    Windows 11 Beta
    Computer type
    Laptop
    Manufacturer/Model
    Asus X751BP
    CPU
    AMD A9-9420
    Memory
    8 GB of DDR4
    Graphics card(s)
    AMD Radeon R5
    Screen Resolution
    1600x900
    Hard Drives
    Seagate 1 TB
Option 2 broken now?
I'll look into it more to see if I can find out why.

It has started with version 26200.7623. It apply to all app permissions, not just Location.

Now, for the registry values to take effects, you need to delete the "
CapabilityConsentStorage" database.
(This is a cached version of the permissions and will be rebuild when needed from the registry values)

This database is in : C:\ProgramData\Microsoft\Windows\CapabilityAccessManager.
Delete the three files .db .db-wal .db-shm (SYSTEM privileges is required).
"Capability Access Manager Service" (camsvc) and "Geolocation Service" (lfsvc) also needs to be stopped (because they locks the database).

Without GPO, another solution is to use : SystemSettingsAdminFlows.exe SetCamSystemGlobal location 0
(visible in Procmon) (0: disabled | 1: Enabled) ("SetCam" stands for "Capability Access Manager," not for webcam)
This command controls the SystemGlobal toggle (e.g. Location services or Camera access) not the user toggle (e.g. Let apps access your location/camera).


@Brink
Also, as noted by @OAT , there is another group policy setting (missing in the turorial).
(edit: there is an other dedicated tutorial for this setting, didn't saw in your post)
computer config > administrative tpl > windows components > app privacy
let Windows apps access location

This is the equivalent of the Privacy & security GUI setting (options 1 & 2)

Your options 3 & 4 are a more system-wide setting, not just for apps.
computer config > administrative tpl > windows components > location and sensors
turn off location
 

My Computer My Computer

At a glance

.
OS
.
I moved from Scotland to England in July and yet, Windows location still shows my old address. When I moved house ten years ago, it didn't take this long to correct itself. My phone has no trouble locating me.

I can't find any solution as Windows can't really use an external GPS although My PC can stream its data Windows itslf ignores it.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro 26H2 26300.9711AMD Ryzen 7 5825U with Radeon Graphics16GB
    OS
    Windows 11 Pro 26H2 26300.9711
    Computer type
    Laptop
    Manufacturer/Model
    Acemagic LX15PRO
    CPU
    AMD Ryzen 7 5825U with Radeon Graphics
    Motherboard
    BIOS CT_BI_AMI_LX15PRO_AB8139_A-004
    Memory
    16GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Internet Speed
    30 Mbps
    Browser
    Brave
    Antivirus
    Webroot SecureAnywhere Complete beta
  • At a glance

    Windows 11 Pro 23H2 22631.2506Atom N450 1.66GHz2GB
    Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
  • Acer Swift SF114-34 laptop
    OS Windows 11 Pro 26200.8894
    CPU Pentium Silver N6000
    RAM 4GB
    BIOS v1.17
    SSD Samsung 970 EVO Plus SSD 2TB (an upgrade)

Latest Support Threads

Latest Tutorials

Back
Top Bottom