|
|
楼主 |
发表于 2018-10-11 20:38:15
|
显示全部楼层
本帖最后由 ygqiang 于 2018-10-11 20:44 编辑
- @echo off
- reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Search Page" /t REG_SZ /d https://www.baidu.com/ /f
- reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d https://www.baidu.com/ /f
- 1pause
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN" /v Default_Page_URL /t REG_SZ /d https://www.baidu.com/ /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN" /v Default_Search_URL /t REG_SZ /d https://www.baidu.com/ /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN" /v "Search Page" /t REG_SZ /d https://www.baidu.com/ /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN" /v "Start Page" /t REG_SZ /d https://www.baidu.com/ /f
- 1pause
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search" /v CustomizeSearch /t REG_SZ /d https://www.baidu.com/ /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search" /v SearchAssistant /t REG_SZ /d https://www.baidu.com/ /f
- 1pause
- cls
- reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Recovery" /v AutoRecover /t REG_SZ /d 2 /f
- ;ie启用自动崩溃恢复(2不启用-0启用)
- 1pause
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NlaSvc\Parameters\Internet" /v EnableActiveProbing /t REG_SZ /d 0 /f
- ;自动弹出MSN中文网界面解决办法
- 1pause
- cls
- gpupdate /force
- 修改注册表之后,重启explorer生效
- taskkill /f /im explorer.exe
- start explorer.exe
- exit
复制代码 经过测试,这个代码可以修改主页设置。双击C:\Program Files (x86)\Internet Explorer目录下iexplore.exe,打开的是百度页面。
但是如果将iexplore.exe建立快捷方式,无论是在桌面还是C:\Program Files (x86)\Internet Explorer目录下,打开快捷方式,页面都是直接打开https://hao.360.cn/?a1004。
快捷方式属性里面,目标(T)为"C:\Program Files (x86)\Internet Explorer\iexplore.exe",IE浏览器,工具-Internet选项里面主页设置也是百度页面。 |
|