2021-03-17 19:32:08 spawnshow

IE11_恢復初始值 批次檔

@echo off

echo ====================================
echo     Reset  IE11  to  Defaults
echo ====================================

echo 【匯出 IE 信任網站  設定】,請稍等......
"C:\Windows\System32\Reg.exe" export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" "%~dp0\%username%_IE_trust_cfg.reg"

echo 【匯出 IE 相容性  設定】,請稍等......
"C:\Windows\System32\Reg.exe" export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData" "%~dp0\%username%_IE_compatibility_cfg.reg"

echo 【匯出 IE 快顯  設定】,請稍等......
"C:\Windows\System32\Reg.exe" export "HKEY_CURRENT_USER\software\microsoft\Internet Explorer\New Windows\Allow" "%~dp0\%username%_IE_pop-up_allow_cfg.reg"
echo 匯出完成!

RunDll32.exe InetCpl.cpl,ResetIEtoDefaults


REM ###  echo %cd%        ///當前路徑
REM ###  echo %~dp0       ///當前bat檔案路徑

echo 【匯入 IE 信任網站  設定】,請稍等......
"C:\Windows\System32\Reg.exe" import "%~dp0\%username%_IE_trust_cfg.reg"
echo 【匯入 IE 相容性  設定】,請稍等......
"C:\Windows\System32\Reg.exe" import "%~dp0\%username%_IE_compatibility_cfg.reg"
echo 【匯入 IE 快顯  設定】,請稍等......
"C:\Windows\System32\Reg.exe" import "%~dp0\%username%_IE_pop-up_allow_cfg.reg"
echo 匯入完成!

echo 【啟用Pxory設定】,請稍等......
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "ProxyEnable" /t REG_DWORD /d "1" /f
echo Pxory設定 - 完成!!

echo. & pause
exit