Namespace is already defined error when opening Group Policy Editor in Windows 10

While opening the Local Group Policy Editor on my Windows 10 Pro computer, I received the following error message:

Namespace ‘Microsoft.Policies.Sensors.WindowsLocationProvider’ is already defined as the target namespace for another file in the store.

Clicking on OK made the box go away and I could continue to work on my Group Policy Editor.

The question is – what is this error and why does this happen?

Namespace is already defined

Namespace is already defined

This happens because the LocationProviderADM.admx file has been renamed to Microsoft-Windows-Geolocation-WLPAdm.admx in Windows 10.

So it is quite possible that you are facing this error on some systems after you upgraded to Windows 10 RTM. But you will not notice this if you upgraded directly to Windows 10 v1511 from Windows 8.1 or Windows 7.

Microsoft explains that this error is for information purposes only, and clicking on OK and moving forward will make the GPEDIT function normally.

However, if you wish to remove the cause of this happening, then KB3077013 suggests that you delete the LocationProviderADM.admx and LocationProviderADM.adml files, and change the names of Microsoft-Windows-Geolocation-WLPAdm.admx and Microsoft-Windows-Geolocation-WLPAdm.adml files to the correct names.

To do this, create a system restore point first. Next, open an elevated command prompt window and run the following command:

Advt

^

takeown /F " C:\Windows\PolicyDefinitions\Microsoft-Windows-Geolocation-WLPAdm.admx" /A

Followed by-

takeown /F " C:\Windows\PolicyDefinitions\en-US\Microsoft-Windows-Geolocation-WLPAdm.adml" /A

gpedit error

Next, grant administrators Full Control permissions to both files. To do this, open C:\Windows\PolicyDefinitions and right-click on the Microsoft-Windows-Geolocation-WLPAdm.admx file and select Properties.

Under the Security tab, click the Edit button. Next in the new setting box, select Full Control as shown below. Click Apply, OK, and exit.

Namespace is already defined group policy

Do the same for the C:\Windows\PolicyDefinitions\en-US\Microsoft-Windows-Geolocation-WLPAdm.adml file too.

Finally, rename both the files with an extension of .old.

Restart your computer and see.

The error messages will go away.

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.