Reset Default Group Policy

Jeremy@7th 0 Reputation points
2023-06-22T19:34:09.4866667+00:00

I am trying to reset the default group policies, Default Domain Controllers Policy and Default Domain Policy.

When I run the dcgpofix /target:both (with or without /ignoreschema) I get the prompts "You are about to restore Default Domain Policy and Default Domain Controller Policy for the following domain XXXXX.local as well as "This operation will replace all 'User Rights Assignments' made in the chosen GPOs. This might cause some server applications to fail. Do you want to continue" in which I choose Y for both.

It tries to run but then fails saying "Unable to delete the file or directory E:\Windows\SYSVOL\sysvol\XXXXX.local\Policies{31B2F340-016D-11D2-945F-00C04FB984F9}\USER\Preferences\ScheduledTasks"

If I try them one at a time (/target:dc or /target:domain) I get the same error for domain but for /target:dc it says "Unable to delete the file or directory E:\Windows\SYSVOL\sysvol\XXXXX.local\Policies{6AC1786C-016F-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT*."

I've tried going to the delegation in the GPMC as well as ADSI edit and adding specific permissions to my user account to no avail. The account I am using as a full domain/enterprise administrator.

I'm not sure what else to try here. I need to restore these policies. The OS is Server 2019 Standard.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,774 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.