Skip to content

Instantly share code, notes, and snippets.

@DownWithUp
Created December 28, 2018 19:27
Show Gist options
  • Save DownWithUp/f7ff1da2ab5b9f69eaca6c1ba327b344 to your computer and use it in GitHub Desktop.
Save DownWithUp/f7ff1da2ab5b9f69eaca6c1ba327b344 to your computer and use it in GitHub Desktop.
' Must run this script as an admin
Set wshShell = CreateObject( "WScript.Shell" )
strPath = "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\"
wshShell.RegWrite strPath, ""
wshShell.RegWrite strPath + "Debug Print Filter\", ""
wshShell.RegWrite strPath + "Debug Print Filter\DEFAULT", 8, "REG_DWORD"
MsgBox "Registry Written @ " + vbCrLf + strPath + "Debug Print Filter\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment