Board logo

标题: [问题求助] 求助VBS修改Enable Browser Extensions [打印本页]

作者: huiwin    时间: 2023-9-7 13:44     标题: 求助VBS修改Enable Browser Extensions

求助帖:
主要的需求是关闭Internet属性中的"启用第三方浏览器扩展*"选项,经过查看注册表设置目录为
计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\目录下的Enable Browser Extensions这个值,需要将他调整为no
vbs这块本人是在是不太会,懂得大神帮帮忙。
作者: Batcher    时间: 2023-9-7 14:19

回复 1# huiwin


禁用.vbs
  1. Set objShell = WScript.CreateObject("WScript.Shell")
  2. objShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Enable Browser Extensions", "no", "REG_SZ"
复制代码
启用.vbs
  1. Set objShell = WScript.CreateObject("WScript.Shell")
  2. objShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Enable Browser Extensions", "yes", "REG_SZ"
复制代码
禁用.bat
  1. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Enable Browser Extensions" /t REG_SZ /d "no" /f
复制代码
启用.bat
  1. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Enable Browser Extensions" /t REG_SZ /d "yes" /f
复制代码
VBS对注册表进行读、写、删操作
http://bbs.bathome.net/thread-3749-1-1.html
http://bbs.bathome.net/include/js/script56/html/wsmthregwrite.htm
作者: huiwin    时间: 2023-9-7 15:00

回复 2# Batcher
感谢大神的分享,学习了




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2