通过注册表修改IE选项 -- 高级选项里边的“关闭浏览器时清空“Internet临时文件”文件夹”的方法

let shell = new ActiveXObject("WScript.Shell");
// 关闭浏览器时清空“Internet临时文件”文件夹
shell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\CACHE\\Persistent","0","REG_DWORD");

// 允许运行或安装软件,即使签名无效
shell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Internet Explorer\\Download\\RunInvalidSignatures","1","REG_DWORD");

执行以上代码即可。

猜你喜欢

转载自blog.csdn.net/joyvonlee/article/details/88850596