Skip to content

Instantly share code, notes, and snippets.

@manelrodero
Created October 11, 2022 09:50
Show Gist options
  • Save manelrodero/ccc9bece319cf6f1fc559c158b2ec68a to your computer and use it in GitHub Desktop.
Save manelrodero/ccc9bece319cf6f1fc559c158b2ec68a to your computer and use it in GitHub Desktop.
@echo off
:: https://learn.microsoft.com/en-us/archive/blogs/askds/a-treatise-on-group-policy-troubleshootingnow-with-gpsvc-log-analysis
:: https://learn.microsoft.com/en-us/answers/questions/120736/gpos-not-applied-ad-group-issue.html
:: http://www.sysprosoft.com/policyreporter.shtml
echo GPO Debug Activation:
echo - Adding "GPSvcDebugLevel" registry key...
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Diagnostics" /v "GPSvcDebugLevel" /t REG_DWORD /d 0x00030002 /f > nul
if not exist "%windir%\debug\usermode" (
echo - Creating %windir%\debug\usermode...
mkdir "%windir%\debug\usermode"
)
echo - Updating GPO...
gpupdate /force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment