先在IE浏览器手动添加受信任站点,然后运行下面代码的批处理,生成的另一个批处理就是可作为自动修改设置的批处理- @echo off
- if "%~n0" equ "受信任站点设置" echo;重命名后再次运行&ping /n 2 0 >nul& exit
- >nul reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" "%tmp%\$.reg" /y
- >"%tmp%\$.txt" more +7 "%~f0"
- (type "%tmp%\$.txt"&type "%tmp%\$.reg")>受信任站点设置.bat
- echo;完成,运行生成的批处理文件即可修改受信任站点设置
- ping /n 2 0 >nul& exit
- @echo off
- >"%tmp%\t.reg" more +5 "%~f0"
- regedit /s "%tmp%\t.reg"
- echo;受信任站点设置已修改,请重启IE浏览器
- ping /n 2 0 >nul& exit
- Windows Registry Editor Version 5.00
-
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
- "CurrentLevel"=dword:00010000
- "1001"=dword:00000000
- "1004"=dword:00000001
- "1201"=dword:00000001
- "1206"=dword:00000000
- "1209"=dword:00000000
- "1406"=dword:00000000
- "1407"=dword:00000000
- "1409"=dword:00000003
- "1607"=dword:00000000
- "1804"=dword:00000000
- "1809"=dword:00000003
- "1A00"=dword:00000000
- "1A04"=dword:00000000
- "1A05"=dword:00000000
- "1C00"=dword:00030000
- "2101"=dword:00000001
- "2102"=dword:00000000
- "2200"=dword:00000000
- "2201"=dword:00000000
- "2301"=dword:00000003
- "2702"=dword:00000003
复制代码
|