Questions

Forum Navigation
Please to create posts and topics.

How to fix error 0x8007000d during GPUpdate (gpupdate.exe) on Domain Controller or Member server?

While working on your server you may come across the following error in the Application logs:

Event Type: Error
Event Source: Group Policy Local Users and Groups
Event Category: (2)
Event ID: 8194
Date: 11/26/2011
Time: 6:37:36 PM
User: NT AUTHORITY\SYSTEM
Computer: SERVER1

Description:
The client-side extension could not remove computer policy settings for ‘Domain Policy Name {SPID}’ because it failed with error code ‘0x8007000d The data is invalid.’ See trace file for more details.

This is usually caused by a corrupt or malformed XML file in the local server’s group policy cache. This usually happens when there is a crash or unexpected shutdown of the server while a Group Policy update is taking place.

To resolve this issue, follow these steps:

Enable the tracing log for the registry and for the "service" client-side extension.

In the CSE log, search for "0x8007000d" to find the following information that indicates that the local cached XML file was corrupted:

Time log [pid=0x148,tid=0x3b54] GPH data file :
C:\ProgramData\Microsoft\Group Policy\History\{GPO GUID}\Machine\Preferences\Services\Services.xml
Time log [pid=0x148,tid=0x3b54] Completed parse of GPH XML. [ hr = 0x8007000d "The data is invalid."

Search for the corrupted file, then rename the corrupted file or delete the corrupted file.

Finally, run the gpupdate /force command to allow for a new cached file to be created.

NOTE: you can check even directly the path C:\ProgramData\Microsoft\Group Policy\History\ to find if there are, in the relative GPO folder, some corrupted XML files.