Set searchdomain exabyte.systems as default #48

This commit is contained in:
Michael H.G. Schmidt 2022-12-11 23:05:01 +01:00
parent 95d41b09a0
commit dbb9858e4b
2 changed files with 41 additions and 0 deletions

View File

@ -5,6 +5,7 @@ set T=c:\TEMP
set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts
set LOG=%SCRIPTS%\autoconfig-all.txt
set COMPANY_SETTINGS=..\company\settings.cmd
del /F %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
@ -24,6 +25,8 @@ mkdir %T% 1>nul 2>nul
echo cd to %SCRIPTS% ...
cd /D %SCRIPTS%
rem SCRIPT settings ...
if EXIST settings.cmd (
echo loading settings ...
call settings.cmd
@ -40,6 +43,27 @@ echo install_aerolite=%install_aerolite%
echo ++++++++++++++++++
echo.
rem COMPANY settings ...
set mydomain=
if NOT EXIST %COMPANY_SETTINGS% (
echo INFO: COMPANY %COMPANY_SETTINGS% NOT FOUND
) else (
echo OK. Loading COMPANY settings ...
call %COMPANY_SETTINGS%
)
echo ++++++++++++++++++
echo mydomain=%mydomain%
echo ++++++++++++++++++
echo.
echo #######################
echo ### UNPACK and COPY ###
echo #######################
echo.
rem 7-zip is essential for other scripts ...
call unpack-7zip.cmd
echo.
@ -56,6 +80,7 @@ rem copy some other stuff ...
call copy-executables.cmd
echo.
echo #######################
echo ### MODIFICATIONS ###
echo #######################
@ -102,6 +127,9 @@ echo.
call modify-timeservers.cmd
echo.
call modify-searchdomains.cmd
echo.
echo #######################
echo ### UNINSTALL tasks ###
echo #######################
@ -116,6 +144,7 @@ echo.
call uninstall-edge.cmd
echo.
echo #####################
echo ### INSTALL tasks ###
echo #####################
@ -170,6 +199,7 @@ echo removing read-only flag on tools folder ...
attrib /S /D -R %TOOLS%\*
echo.
echo #####################
echo ### DISABLE tasks ###
echo #####################
@ -199,6 +229,7 @@ echo.
powershell -command .\disable-soundscheme.ps1
echo.
echo #####################
echo ### CLEANUP tasks ###
echo #####################

View File

@ -0,0 +1,10 @@
@echo off
echo ####### %0 #######
echo setting DNS search list (mydomains) ...
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" ^
/v SearchList /t REG_SZ /f /d "%mydomains%"
echo ####### %0 #######