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.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.