第一个代码是设置IE安全,第二个代码是设置兼容性视图,怎么将两个代码合并为一个
第一个:- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range10" /v ":Range" /t REG_SZ /d 10.46.3.12 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range10" /v "http" /t REG_DWORD /d 2 /f
-
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1001" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1004" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1200" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1201" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1405" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "2201" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1208" /t REG_DWORD /d 0 /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1809" /t REG_DWORD /d 1 /f
-
- @echo off
-
- echo 设置成功,请关闭IE重启
- pause
复制代码 第二个:- @echo off
- >"%tmp%\t.reg" more +5 "%~f0"
- regedit /s "%tmp%\t.reg"
- echo;OA设置已成功,请重启IE浏览器
- ping /n 2 0 >nul& exit
- Windows Registry Editor Version 5.00
-
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData]
- "UserFilter"=hex:41,1f,00,00,53,08,ad,ba,05,00,00,00,c8,00,00,00,01,00,00,00,\
- 05,00,00,00,0c,00,00,00,b1,29,79,f6,e0,b2,d4,01,01,00,00,00,09,00,31,00,30,\
- 00,2e,00,34,00,36,00,2e,00,33,00,2e,00,38,00,0c,00,00,00,de,1a,ac,0c,e1,b2,\
- d4,01,01,00,00,00,0a,00,31,00,30,00,2e,00,34,00,36,00,2e,00,33,00,2e,00,31,\
- 00,32,00,0c,00,00,00,80,15,fa,e2,e2,b2,d4,01,01,00,00,00,0a,00,31,00,30,00,\
- 2e,00,34,00,36,00,2e,00,33,00,2e,00,32,00,32,00,0c,00,00,00,8c,cc,f6,e5,e2,\
- b2,d4,01,01,00,00,00,0a,00,31,00,30,00,2e,00,36,00,33,00,2e,00,31,00,2e,00,\
- 38,00,35,00,0c,00,00,00,6d,a3,39,e8,e2,b2,d4,01,01,00,00,00,0a,00,31,00,30,\
- 00,2e,00,36,00,33,00,2e,00,31,00,2e,00,38,00,38,00
复制代码
|