w10install/scripts/autoconfig-all.cmd

139 lines
2.5 KiB
Batchfile
Raw Normal View History

2021-01-12 17:01:34 +01:00
@echo off
rem this script is doing most of the work ...
set T=c:\TEMP
set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts
2021-02-03 06:49:13 +01:00
set LOG=%SCRIPTS%\autoconfig-all.txt
set COMPANY_SETTINGS=..\company\settings.cmd
2021-02-03 06:49:13 +01:00
del /F %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
2021-01-12 20:23:36 +01:00
2021-03-29 08:36:45 +02:00
rem show window with logfile while running scripts ...
start %TOOLS%\logmonitor.exe %LOG%
2021-03-22 00:39:55 +01:00
2021-01-12 17:01:34 +01:00
echo ####### %0 #######
2021-02-03 06:49:13 +01:00
date /t
time /t
2021-01-12 20:23:36 +01:00
echo.
2021-01-12 17:01:34 +01:00
echo creating %T% ...
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
) else (
echo WARNING: settings.cmd not found!
echo setting defaults ...
set windows_updates=1
)
2021-01-12 17:01:34 +01:00
2021-03-31 01:11:03 +02:00
echo ++++++++++++++++++
echo windows_updates=%windows_updates%
2021-03-31 13:42:21 +02:00
echo install_firefox=%install_firefox%
echo install_aerolite=%install_aerolite%
2021-03-31 01:11:03 +02:00
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.
2021-02-28 14:10:59 +01:00
rem 7-zip is essential for other scripts ...
call unpack-7zip.cmd
echo.
rem windows update blocker is in the zipfiles ...
call unpack-zipfiles.cmd
echo.
2021-02-28 15:24:20 +01:00
rem put vnc in place ...
call unpack-vnc.cmd
echo.
2021-02-28 14:10:59 +01:00
rem copy some other stuff ...
call copy-executables.cmd
2021-02-28 14:10:59 +01:00
echo.
2021-01-12 19:11:44 +01:00
echo #####################
echo ### INSTALL tasks ###
echo #####################
echo.
2021-01-12 17:01:34 +01:00
2021-02-27 23:45:38 +01:00
call install-tweaks.cmd
echo.
2021-02-03 12:42:10 +01:00
call install-adk.cmd
2021-01-12 19:11:44 +01:00
echo.
2021-01-12 17:01:34 +01:00
call install-git.cmd
2021-01-12 19:11:44 +01:00
echo.
2021-01-12 17:01:34 +01:00
2021-02-07 21:24:26 +01:00
powershell -command .\install-windowsterminal.ps1
2021-02-03 12:42:10 +01:00
echo.
2021-01-31 23:59:16 +01:00
2021-01-12 19:11:44 +01:00
rem fuck you microsoft ...
2021-01-12 17:01:34 +01:00
call install-openshell.cmd
2021-01-12 19:11:44 +01:00
echo.
2021-01-12 17:01:34 +01:00
2021-01-12 19:11:44 +01:00
rem fuck you google ...
2021-03-31 13:42:21 +02:00
if %install_firefox% == 1 (
call install-firefox.cmd
echo.
)
2021-01-12 17:01:34 +01:00
2021-04-13 14:20:54 +02:00
call install-win32diskimager.cmd
echo.
2021-03-09 23:15:35 +01:00
call install-shortcuts.cmd
2021-02-03 12:42:10 +01:00
echo.
2021-03-02 14:21:58 +01:00
rem should be done as late as possible ...
call install-logonscript.cmd
echo.
2021-03-13 13:06:52 +01:00
echo add full access rights to all users on public icons ...
2021-02-28 22:17:02 +01:00
icacls %PUBLIC%\Desktop\*.lnk /grant Users:F
2021-03-13 13:06:52 +01:00
echo.
2021-02-28 22:17:02 +01:00
2021-03-13 13:06:52 +01:00
echo removing read-only flag on tools folder ...
2021-02-28 22:53:42 +01:00
attrib /S /D -R %TOOLS%\*
2021-03-13 13:06:52 +01:00
echo.
2021-02-28 22:53:42 +01:00
2021-02-03 06:49:13 +01:00
date /t
time /t
2021-01-12 17:01:34 +01:00
echo ####### %0 #######
echo READY.
2021-01-14 00:03:49 +01:00
echo.
2021-01-30 21:38:46 +01:00
2021-03-13 13:06:52 +01:00
echo rebooting ...
shutdown -g -t 0