一鍵設定IE瀏覽器信任站點和安全級別

千年聊一會發表於2018-09-25

因工作需要,需要批量下發一個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主頁成功

 

相關文章