You cannot edit GPO and the Registry.pol file is not replicated when locked in Windows Server 2008 R2 or Windows Server 2012


Assume that you have a client computer in a Windows Server 2008 R2-based or Windows Server 2012-based domain environment. Additionally, assume that the client computer has an exclusive lock on the Registry.pol file. In this situation, the following issues may occur:
  • A "File in use" error message is received when the administrator tries to edit a specific Group Policy.
  • A "File in use" error message is received when the Distributed File System Replication (DFSR) service tries to replicate updates to the Registry.pol file.
Additionally, you receive the following event log:


This issue occurs because a Server Message Block (SMB) protocol prevents the release of the exclusive lock for the client computer.


After you apply this hotfix and set the registry key value on the Domain Controller, the event information is changed as follows:

Depending on results of different operations, Event ID 6321 displays one of the following three possible description messages:

Hotfix information

To resolve this issue, install this hotfix on the Domain Controller or a client computer that has the Remote Server Administration Tools feature installed.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.


To apply this hotfix, you must be running Windows Server 2008 R2 Service Pack 1 (SP1) or Windows Server 2012.Additionally, Windows Server 2008 R2-based or Windows Server 2012-based computer must be a Domain Controller.

Registry information

To resolve this issue, you have to create the following registry key on the Domain Controller:
  1. Start Registry Editor. To do this, press WIN+R, type regedit, and then click OK.
  2. Locate and then click the following registry key:
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type GroupPolicyForceCloseSysvolFileHandle, and then chick Modify.
  5. In the value data box, type 1, and then click OK.
  6. Exit Registry Editor.
  7. Restart the Domain Controller.
  • Any nonzero value will enable this feature.
  • You can also apply this hotfix and then create the registry key. You have to restart the Group Policy service on the Domain controller to enable the setting.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.
File information


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Additional file information

Article ID: 2791372 - Last Review: Apr 9, 2013 - Revision: 1