9 comments

Corrupt Local GPO Files

Published on Friday, May 8, 2015 in

A while ago I go I looked into a laptop not being able to access anything on the network. As this customer has Direct Access deployed I knew I had to start my troubleshooting with the following command: netsh dns show state

1

As you can tell from the screenshot above, the laptop thinks it’s outside the corporate network and has Direct Access configured and enabled. I tried pinging various resources (on the domain) but they all failed. That would make sense as the client is trying to build a Direct Access tunnel, but fails to do so. Besides that, the name resolution policy also kicks in. The result is that neither remote or local connectivity is working. In such a situation one should suspect an issue with the Network Location Service that is deployed on the network. However this was an isolated case as no other clients were showing similar issues…

The reason name resolution and thereby all other domain related tasks are failing is the fact that the Direct Access name resolution policies are in place and force all DNS requests for the domain zone to be resolved by the Direct Access DNS service. That one is not reachable as we don’t have a valid Direct Access Connection… In order to mitigate this I thought I’d kill the name resolution policies locally and see if I’d be able to get it talking to the domain again.

3

Delete both DA-…. keys. They can be found below HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\DnsPolicyConfig. Reboot the client afterwards. In my case I could see connectivity (and name resolution) was now working again. But processing GPO’s still failed:

4

In the event log:

5

Event 1096: The processing of Group Policy failed. Windows could not apply the registry-based policy settings for the Group Policy object LocalGPO. Group Policy settings will not be resolved until this event is resolved. View the event details for more information on the file name and path that caused the failure.

Some googling led me the following information:

The instructions to fix this:

  • Rename (or delete) C:\Windows\System32\GroupPolicy\Machine\Registry.pol
  • Start > run > cmd (as admin)
  • Gpedit.msc
  • Below administrative templates change a (not matter which) setting and then revert it. This will trigger the creation of a new registry.pol file
  • gpupdate /force
  • Gpo’s should process correctly now.

6

Now you might wonder, how does this registry.pol gets in such a condition that group policy processing starts the fail? I stumbled across the following post:

http://blogs.technet.com/b/systemcenterpfe/archive/2013/01/11/updated-system-center-2012-configuration-manager-antivirus-exclusions-with-more-details.aspx?pi47623=2

In the comments section there’s a comment from Mike Niccum which seems to be very interesting. We checked our exclusions on our Endpoint Protection and as Mike explains we’re also seeing the missing antivirus exclusion. We added it and in the coming weeks we’ll see whether new issues will pop up or not.

  • Present (Wrong?) exclusion: C:\Windows\System32\GroupPolicy\Registry.pol
  • Missing exclusion: C:\Windows\System32\GroupPolicy\Machine\Registry.pol

Related Posts

9 Response to Corrupt Local GPO Files

Anonymous
14 September, 2015 04:45

Hi, Does it fix the problem with policy update?

18 September, 2015 14:13

The blogpost fixes the issue described... I'm not sure I understand your question.

25 July, 2016 20:50

Thank you this worked perfectly.

Anonymous
05 June, 2017 17:05

Hi
Thanks for your Post. Does the server needs reboot for the registry.pol rename?

Thanks in advance.

Anonymous
10 January, 2018 00:01

Thanks.

Anonymous
02 February, 2018 12:54

Thnaks for this. Works perfectly

Anonymous
28 May, 2018 09:52

Hey, thank you for this post! It totally solved my issue!

02 December, 2019 21:32

When I tried to join 1 particular computer to my domain I was getting that name resolution policy table was corrupt... We don't have Direct Access and so I was looking for alternative fixes and this one worked for me! The problematic PC did not even have a local registry.pol file but once it was created, all started working properly.

Anonymous
07 April, 2023 09:51

Thank you!!!

Add Your Comment