var WShell = WScript.CreateObject("Wscript.Shell"); var key = "HKCU\\Software\\Microsoft\\Internet Explorer\\" + "Main\\Display Inline Images"; var value = WShell.RegRead(key); WShell.RegWrite(key, value == "yes" ? "no" : "yes"); var shell = WScript.CreateObject("Shell.Application"); shell.ControlPanelItem("inetcpl.cpl"); WScript.Sleep(1000); WShell.Sendkeys("{ENTER}"); WScript.Sleep(2000); WShell.Sendkeys("{F5}");