Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Enabling the Geolocation service fails with error


View products that this article applies to.

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.

↑ Back to the top


Cause

When the service is disabled this way, it is missing an underlying WNF event. This is a known issue with Windows 10.

↑ Back to the top


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.

↑ Back to the top


More Information

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

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3119176
Revision : 1
Created on : 1/7/2017
Published on : 12/1/2015
Exists online : False
Views : 195