Error: Microsoft.Policies.Sensors.WindowsLocationProvider is already defined

After Windows 10 1511 upgrade, starting the group policy editor I see this error:

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

C:\WINDOWS\PolicyDefinitions\Microsoft-Windows-Geolocation-WLPAdm.admx, line 5, column 110

There is a KB that explain why and how to solve it:


Here how I solved. Open a Powershell with Admin rights.

First I took the ownership of the file I want to rename:

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

Then I was able to change the ACL:

 $acl = get-acl C:\Windows\PolicyDefinitions\Microsoft-Windows-Geolocation-WLPAdm.admx
$permission = "MYDOM\myuser","FullControl","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl | Set-Acl C:\Windows\PolicyDefinitions\Microsoft-Windows-Geolocation-WLPAdm.admx

The I simply renamed the file:

 ren C:\Windows\PolicyDefinitions\Microsoft-Windows-Geolocation-WLPAdm.admx C:\Windows\PolicyDefi

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s