Skip to content

Instantly share code, notes, and snippets.

@redtrillix
Last active August 4, 2022 05:48
Show Gist options
  • Save redtrillix/b57bd638c8f119c4551b378fe4807662 to your computer and use it in GitHub Desktop.
Save redtrillix/b57bd638c8f119c4551b378fe4807662 to your computer and use it in GitHub Desktop.
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
@redtrillix
Copy link
Author

This should only be used for if Microsoft f*cks ur Windows build and locks features with a policy (eg. windows updates).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment