Skip to content

Instantly share code, notes, and snippets.

@hackingbutlegal
Created February 12, 2013 03:34
Show Gist options
  • Save hackingbutlegal/4760042 to your computer and use it in GitHub Desktop.
Save hackingbutlegal/4760042 to your computer and use it in GitHub Desktop.
Windows: Fix Active Desktop errors
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components"
strValue = "0"
ValueName = "DeskHtmlVersion"
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, strValue
msgbox "Please Log Off & Log Back In!!!!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment