Link to home
Start Free TrialLog in
Avatar of redworks

asked on

Disabling Group Policy Management (locked out!)


OK, I have done something terribly stupid.

On the domain controler, I have was playing with a new group policy for our new terminal server. As you can understand, I limited as much as possible (cmd, powershell, regedit, etc). Stupid me, I also restricted the administrator user.

Now, when logging in to the server or any other for that matter, it blocks all. I can not remove this policy. What can I do to temporarily disable GPO, and unset it (at least for admin users)?
Avatar of Carl Webster
Carl Webster
Flag of United States of America image

Method #1: Very simple, on the GPO, go to the last tab, bottom right, click that button, add your admin account/group and then set the Deny right to the policy object.  OK out, exit the GPO and reboot your server.

Method #2: move the server object in AD to an OU where the GPO does not apply, reboot the server.

ALWAYS do method 1 when creating new GPOs.  Another piece of advice, never create AND link a GPO when you create it.  Always create a new GPO in the Group Policy Object container in the GP Mgmt Console.
Avatar of redworks


M1: Will probably not work. I disabled cmd/powershell, and all access to control panel.

M2: How do I do this?
Was the GPO linked to an OU where your terminal servers reside?  Or linked at the domain level?
Domain I think.

On the DC can you not get into the GPMC?

Is this for a test or production domain?
Ouch indeed!
Well, I am installing it FOR a production. But I am so far done... Would cost me lot of work to start over :(

Would like to add, I can boot from Win2012 DVD, go to recovery cmd prompt, and run regedit. Anything I can do there to temporarily disable GPO?
can you run services.msc and disable the Group Policy service?

or maybe:

sc config gpsvc start= disabled (yes that is a space after the =)

If that doesn't work,


change from 2 to 4
Also no go... :(
Didnt work
Why can't you just delete the GPO link and reboot the server?
this should remove the GP settings.
How exactly did you apply the restrictions?

Any chance you could build a new VM or image a PC real quick that's not on your domain, install RSAT, join the machine to the domain but *don't* reboot yet... use run-as to load the GPMC or PowerShell and disable the bad policy.

The restrictive GPO won't actually apply to the machine you'd be using until you reboot... you'll have to definitely launch whatever tools you need using domain admin credentials which should be no problem once the join operation finishes... you'll be prompted for credentials enough to drive you crazy but it is a window that you can possibly exploit..?
Another idea... why not just edit the ADM files for that policy in notepad to remove the restriction on the admin user so you can clean this up... I wouldn't just delete the policy but you should be able to browse to \\yourdomain\sysvol\yourdomain\policies from any machine on your network... you'll be prompted for credentials with good permissions but once you're there the ADM files are plain text...

Access the sysvol folder with administrator ID

Take owner ship of the folder and put deny access to GUID of folders under \\domain.local\sysvol\policies\{GUID} for administrators then restart the DC

In this way you would deny access to GPO and so policies will not be applied to Administrator user ID then you can login to DC and fine tune settings via GPMC
@sarang... I'm not sure that would work in this case... the policy has already propogated out to his domain so unless there is some type of update that revokes the policy or modifies the policy settings it won't just stop applying... create another admin account by installing admin pack on one of the member machine and do same with that ...lets see if that works
Avatar of redworks

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
seems this is one of those questions to which there is no solution