-
-
Notifications
You must be signed in to change notification settings - Fork 224
Description
Baseline Info (please complete the following information):
- OS: Windows 11 24H2
- Version: 3.7
Describe the bug
The value of registry subkey "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides{BFA794E4-F964-4FDB-90F6-51056BFE4B44}\SensorPermissionState" that is modified by script Enable-AutoTimezone.ps1 is reverted by lfsvc the next time lfsvc restarts.
To Reproduce
1. Disable location services. Confirm SensorPermissionState is set to 0:
Get-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}"
Name Property
---- --------
{BFA794E4-F964-4FDB-90F6-51056 SensorPermissionState : 0
BFE4B44}
2. Set SensorPermissionState to 1:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -Value 1
3. Confirm SensorPermissionState is now set to 1:
Get-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}"
Name Property
---- --------
{BFA794E4-F964-4FDB-90F6-51056 SensorPermissionState : 1
BFE4B44}
4. Restart lfsvc
Restart-Service -Name lfsvc
5. Confirm SensorPermissionState has reverted to 0, disabling configurable location services for standard users.
Get-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}"
Name Property
---- --------
{BFA794E4-F964-4FDB-90F6-51056 SensorPermissionState : 0
BFE4B44}
Expected behaviour
Overridden location settings previously persisted across reboots.
Screenshots
Additional context
This issue has been reproduced on a stock Windows installation without Intune policies or MDE. The included screenshot is a segment of a procmon capture confirming it is lfsvc resetting the subkey.