本帖最后由 ygqiang 于 2018-11-9 10:07 编辑
bat文件如下。- ;ie主页搜索页设置
- 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
-
- 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
- 1pause
-
- 修改注册表之后,重启explorer生效
- taskkill /f /im explorer.exe
- start explorer.exe
- cls
-
- taskkill /f /im explorer.exe
- RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
- start explorer.exe
-
- taskkill /f /im explorer.exe
- attrib -s -r -h "%userprofile%\Local Settings\Application Data\iconcache.db"
- del "%userprofile%\Local Settings\Application Data\iconcache.db" /f /q
- start explorer.exe
-
- exit
复制代码
|