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.

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

There is a KB that explain why and how to solve it: https://support.microsoft.com/en-us/kb/3077013

 

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.SetAccessRule($accessRule)
$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
nitions\Microsoft-Windows-Geolocation-WLPAdm.admx.disable
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s