banner



How To Clear Group Policy Cache Windows 10

  1. Home
  2. Windows
  3. Windows 10

I removed a laptop out of the domain.  In the past when I did so and ran gpupdate /force after rebooting it worked fine.  However, and maybe it is just the one policy I was looking at, but in Password policies, it had the domain policy, greyed out, and unable to be changed.

I deleted the following registry keys:

  • HKLM\Software\Policies\Microsoft
  • HKCU\Software\Policies\Microsoft
  • HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects
  • HKCU\Software\Microsoft\Windows\CurrentVersion\Policies

Deleted the  %windir%\system32\GroupPolicy Machine and User caches

Ran this in administrative powershell:

                    Remove-Item "$env:windir\system32\GroupPolicy" -Force -Recurse                  

Popular Topics in Windows 10
Which of the following retains the information it's storing when the system power is turned off?
  • ROM
  • CPU
  • RAM
  • GPU
88% of IT pros got this right.

12 Replies

Justin1250
Justin1250 This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 15, 2019 at 22:06 UTC

Depends on the policy. Managed policy is reverted back to original settings when the policy is removed. Unmanaged policies have to be changed back manually.
As well as any GPP settings.
Your best bet would be to do a refresh or reset if it is a Windows 8 + system

Supaplex
Supaplex This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 15, 2019 at 22:22 UTC

Domain join makes a hell load of changes to the GPO and registry that are not reverted back. The only way that works for me completely in such cases is sysprep.

dimforest
dimforest This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 15, 2019 at 22:30 UTC

Honestly... just create a new local account and copy over any documents you still need/want then blow away the old profile for the added space. If it were me, I would've just reimaged the entire thing, though.

jonweinraub
jonweinraub This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 16, 2019 at 14:21 UTC

I actually did make a new local account.  The original domain account is not being used.  In fact I only copied Documents, Pictures, Downloads, and Desktop.  I have removed machines before out of the domain to make a local account and drilling down to Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy in gpedit.msc was never greyed out before.

Something is causing it to be greyed out and since it is now a workstation, and I am local admin, there isn't anything else I can do besides wiping it?

Justin1250
Justin1250 This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 16, 2019 at 16:59 UTC

jonweinraub wrote:

I actually did make a new local account.  The original domain account is not being used.  In fact I only copied Documents, Pictures, Downloads, and Desktop.  I have removed machines before out of the domain to make a local account and drilling down to Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy in gpedit.msc was never greyed out before.

Something is causing it to be greyed out and since it is now a workstation, and I am local admin, there isn't anything else I can do besides wiping it?

That is interesting. That should have been released when disjoined. The settings would be the same but you should be able to change them.

Did you launch the MMC as admin? Could it still be joined to Azure AD? Or workplace join?

Does it have or was it managed by inTune ? Does it have the intune client still? Any other MDM?

jonweinraub
jonweinraub This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 16, 2019 at 17:44 UTC

Justin1250 wrote:

jonweinraub wrote:

I actually did make a new local account.  The original domain account is not being used.  In fact I only copied Documents, Pictures, Downloads, and Desktop.  I have removed machines before out of the domain to make a local account and drilling down to Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy in gpedit.msc was never greyed out before.

Something is causing it to be greyed out and since it is now a workstation, and I am local admin, there isn't anything else I can do besides wiping it?

That is interesting. That should have been released when disjoined. The settings would be the same but you should be able to change them.

Did you launch the MMC as admin? Could it still be joined to Azure AD? Or workplace join?

Does it have or was it managed by inTune ? Does it have the intune client still? Any other MDM?

It was part of a regular domain (non azure).  No MMC on the computer.  I unjoined domain membership like usual, joined workgroup, "WORKGROUP", rebooted, and ran gpupdate /force and rebooted.  I ran as a local admin (not administrator itself, but a local account that has full admin rights) and when i went to gpedit the policy I want to remove was greyed out.  I never seen that before.  When I did all the above in trying to clear it out, no matter what I did, it remained.  I did extensive research on various boards, including this one, and found similar things to do, which none worked for this enduser.  I disabled fast logon even, did reboots, did power cycling, etc.  I did not try domain rejoin though.  The individual is a remote user, but I did unjoin whilst he was on the VPN.  He was the fifth remote person I unjoined and none of his predecessors had this issue, hence my befuddlement.

mwitkosky

Maybe try applying a default security template to the laptop.  Check this older article: https://blogs.technet.microsoft.com/askds/2008/05/28/default-security-templates-in-windows-2008/ even though this is a Windows 10 computer (assumed from the forum posted to).  On my own computer I see three deflt*.inf files in %systemroot%\INF (defltbase.inf, defltrdsh.inf, and defltwk.inf).  I'd try the "base" or "wk" ones to reset the security settings.  You can use secedit since mmc is not available.

Martin

jonweinraub
jonweinraub This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Jan 18, 2019 at 18:07 UTC

I will check this out soon as I can, apologies for taking so long in replying. Haven't had a chance to reach out to the enduser.

jonweinraub
jonweinraub This person is a Verified Professional
This person is a verified professional.
Jan 18, 2019 at 18:07 UTC

I will check this out soon as I can, apologies for taking so long in replying.  Haven't had a chance to reach out to the enduser.

jonweinraub
jonweinraub This person is a Verified Professional
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Feb 19, 2019 at 16:48 UTC

Sorry for taking so long.  The enduser came into the office today with the laptop and I was able to do this.  This worked fine, however, I was able to reset the policies to how I wanted them, they were still greyed out.  In the end, the result is what I want and that is all what matters in the end.

AlesKapl
AlesKapl This person is a Verified Professional
This person is a verified professional.
Apr 3, 2019 at 20:24 UTC

Did you reboot once again after policies reset?

spicehead-w8lxt

Im looking to reset my windows 10 computer to the default Group Policy they come with. We pushed out originally thru Azure / Intune. Would this script reset it? Remove-Item "$env:windir\system32\GroupPolicy" -Force -Recurse

Any suggestions?

Thanks

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

How To Clear Group Policy Cache Windows 10

Source: https://community.spiceworks.com/topic/2186772-how-to-clear-group-policy-settings-after-leaving-the-domain

Posted by: dahlstromwhalke38.blogspot.com

0 Response to "How To Clear Group Policy Cache Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel