2020-03-14 23:23:57 spawnshow

Regedit 登錄檔 ALL USER

@Echo Off
echo ================================
echo   請先修改 Domain.txt 檔案內容
echo   Domain 格式為 aaa.bbb.cc
echo   新增信任網站,請稍等......
echo ================================
PAUSE
SETLOCAL ENABLEDELAYEDEXPANSION

for /f "tokens=1-20 delims=. " %%i IN (Domain.txt) DO (
set a=%%i
set b=%%j
set c=%%k
)

echo %a%
echo %b%
echo %c%

Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" /ve /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\%b%.%c%\%a%" /v "http" /t REG_DWORD /d "2" /f

control inetcpl.cpl,,1
"%ProgramFiles%\Internet Explorer\iexplore.exe" "http://%a%.%b%.%c%"
exit


+++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++

@Echo Off
echo ================================
echo   請先修改ip.txt檔案內容
echo   新增信任網站,請稍等......
echo ================================
pause
set /P URL=<ip.txt
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges" /ve /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1000" /v "http" /t REG_DWORD /d "2" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1000" /v ":Range" /t REG_SZ /d "%URL%" /f
control inetcpl.cpl,,1
"%ProgramFiles%\Internet Explorer\iexplore.exe" "http://%URL%"
exit


+++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++