Enabling the Geolocation service fails with error

Symptoms
After disabling the Geolocation Service by changing startup type to Disabled, attempts to re-enable it will fail with an error message: “The system cannot find the file specified.”

As the Geolocation Service can no longer be started, Geolocation will remain disabled on the device and prevent location based functionality from working.
Cause
When the service is disabled this way, it is missing an underlying WNF event. This is a known issue with Windows 10.
Resolution
Manually delete the following regkey using regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lfsvc\TriggerInfo\3.
  1. From Start, search for regedit
  2. In the search results, press-and-hold or right-click regedit, and then select Run as administrator
  3. If you get a security prompt, select Yes
  4. Using the arrows in the left-hand pane, expand the following folders in order:    
    1. HKEY_LOCAL_MACHINE
    2. SYSTEM
    3. CurrentControlSet
    4. Services
    5. lfsvc
    6. TriggerInfo
  5. Press-and-hold or right-click on the 3 under the TriggerInfo folder, and select Delete
Example of expanding the regkey folders:



After following the above steps, you should be able to re-enable the Geolocation Service.

More information
To disable geolocation, don’t turn off the service. Instead, go to Settings, select Privacy, and turn off Location.
geolocation, location, gps
Properties

Article ID: 3119176 - Last Review: 12/01/2015 20:33:00 - Revision: 1.0

Windows 10

  • KB3119176
Feedback