Skip to content

Instantly share code, notes, and snippets.

@Arcath
Created February 17, 2011 10:12
Show Gist options
  • Save Arcath/831437 to your computer and use it in GitHub Desktop.
Save Arcath/831437 to your computer and use it in GitHub Desktop.
Resets Active desktop so that on next login it works fine
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment