一键设置IE浏览器信任站点和安全级别

因工作需要,需要批量下发一个bat脚本,修改公司所有客户段的浏览器,添加信任站点、修改安全级别和首页

建议公司内部尽量少用360、腾讯管家等个人版管理软件,安装企业版会减少很多麻烦

如下内容,写入文本,另存为bat后,双机执行即可

如公司有管理软件,主动推送效率更高

@ECHO OFF
ECHO 开始IE浏览器优化设置
ECHO 该设置不会对您的电脑使用带来影响

ECHO ===增加系统地址到信任站点

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range105" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range105" /v ":Range" /t REG_SZ     /d "10.150.*.*"  /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range105" /v "http"   /t REG_DWORD  /d 2 /f > nul

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range106" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range106" /v ":Range" /t REG_SZ      /d "172.168.*.*" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range106" /v "http"   /t REG_DWORD   /d 2            /f > nul

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range107" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range107" /v ":Range" /t REG_SZ      /d "*.hao.cn" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range107" /v "http"   /t REG_DWORD   /d 2            /f > nul


ECHO ===信任站点添加成功


ECHO ===设置IE信任区域

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "DisplayName"  /t REG_SZ    /d "可信站点" /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "CurrentLeve1" /t REG_DWORD /d 0x00001000 /f > nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "Flags"        /t REG_DWORD /d 0x00000043 /f > nul
REM 注释1405:标记为安全可执行的ActiveX控件执行
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1405"         /t REG_DWORD /d 0x00000000 /f > nul
REM 1001:下载已签名的ActiveX控件
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1001"         /t REG_DWORD /d 0x00000000 /f > nul
REM 1004:下载未签名的ActiveX控件
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1004"         /t REG_DWORD /d 0x00000000 /f > nul
REM 1200:运行ActiveX控件和插件
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1200"         /t REG_DWORD /d 0x00000000 /f > nul
REM 1201:执行没有标记为安全的ActiveX控件
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1201"         /t REG_DWORD /d 0x00000000 /f > nul
REM 1402:Java小程序脚本
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "1402"         /t REG_DWORD /d 0x00000000 /f > nul
REM 2201:ActiveX控件自动提示
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "2201"         /t REG_DWORD /d 0x00000000 /f > nul

ECHO ===设置IE信任区域成功


reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "http://hxg.hao.cn" /f >null

ECHO ===设置IE主页成功

 

你可能感兴趣的:(windows)