Option Explicit Dim objShell, strRoot, strModify, strDelete strRoot = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components\" ' Create the Shell object Set objShell = CreateObject("WScript.Shell") strModify = objShell.RegDelete(strRoot) WScript.Echo "Check " & strRoot strModify = null Dim WSHShell, strDesktop Set WSHShell = WScript.CreateObject("WScript.Shell") strDesktop = WSHShell.SpecialFolders("Desktop") WSHShell.AppActivate strDesktop WSHShell.SendKeys "{F5}" WScript.Quit