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
|
|
|
|
|
|
|
|
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%
|
|
|
|
|
2021-03-13 18:53:25 +01:00
|
|
|
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%
|
2021-04-11 22:34:30 +02:00
|
|
|
echo install_aerolite=%install_aerolite%
|
2021-03-31 01:11:03 +02:00
|
|
|
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 ...
|
2021-03-13 18:53:25 +01:00
|
|
|
call copy-executables.cmd
|
2021-02-28 14:10:59 +01:00
|
|
|
echo.
|
|
|
|
|
2021-03-08 10:44:15 +01:00
|
|
|
echo #######################
|
|
|
|
echo ### MODIFICATIONS ###
|
|
|
|
echo #######################
|
|
|
|
echo.
|
|
|
|
|
2021-02-14 15:29:16 +01:00
|
|
|
rem this must be done EARLY!
|
2021-03-07 17:33:31 +01:00
|
|
|
if %windows_updates% == 0 (
|
|
|
|
call disable-updates.cmd
|
|
|
|
echo.
|
|
|
|
)
|
2021-02-14 15:29:16 +01:00
|
|
|
|
2021-03-13 13:06:52 +01:00
|
|
|
echo allow execution of any powershell script ...
|
2021-01-12 17:01:34 +01:00
|
|
|
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine"
|
|
|
|
powershell -Command ^
|
|
|
|
"$T=Get-ExecutionPolicy ; if ($T -eq 'Bypass') { ^
|
|
|
|
write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^
|
|
|
|
} ^
|
|
|
|
else { ^
|
|
|
|
write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^
|
|
|
|
}"
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 20:57:33 +01:00
|
|
|
call modify-path.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-03-31 00:22:47 +02:00
|
|
|
call modify-explorer.cmd
|
|
|
|
echo.
|
2021-03-06 15:10:45 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
call modify-powersettings.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-04-11 22:34:30 +02:00
|
|
|
if %install_aerolite% == 1 (
|
|
|
|
call modify-desktoptheme.cmd
|
|
|
|
echo.
|
|
|
|
)
|
|
|
|
|
2021-02-13 22:29:02 +01:00
|
|
|
call modify-taskbar.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 19:11:44 +01:00
|
|
|
echo #######################
|
|
|
|
echo ### UNINSTALL tasks ###
|
|
|
|
echo #######################
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-02-28 17:57:45 +01:00
|
|
|
powershell -command .\uninstall-apps.ps1
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
|
|
|
call uninstall-onedrive.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
|
|
|
call uninstall-edge.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
|
|
|
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-02-28 14:10:59 +01:00
|
|
|
call install-go.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-03-04 16:35:26 +01:00
|
|
|
call install-python3.cmd
|
2021-02-28 14:10:59 +01:00
|
|
|
echo.
|
|
|
|
|
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-02-03 13:37:54 +01:00
|
|
|
call install-vlc.cmd
|
|
|
|
echo.
|
|
|
|
|
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-01-12 19:11:44 +01:00
|
|
|
echo #####################
|
|
|
|
echo ### DISABLE tasks ###
|
|
|
|
echo #####################
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-01-14 00:43:00 +01:00
|
|
|
call disable-accountpicture.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 20:57:33 +01:00
|
|
|
call disable-logonbackground.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call disable-meetnow.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-03-14 14:11:38 +01:00
|
|
|
call disable-settingsheader.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
call disable-autologon.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-08-05 15:04:48 +02:00
|
|
|
call disable-systemproxy.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-08-05 14:17:08 +02:00
|
|
|
powershell -command .\disable-soundscheme.ps1
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 19:11:44 +01:00
|
|
|
echo #####################
|
|
|
|
echo ### CLEANUP tasks ###
|
|
|
|
echo #####################
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-02-03 06:49:13 +01:00
|
|
|
rem this must be done as late as possible ... stupid os problem #1
|
2021-01-12 17:01:34 +01:00
|
|
|
powershell -Command .\cleanup-tiles.ps1
|
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 ... stupid os problem #2
|
2021-01-12 17:01:34 +01:00
|
|
|
call cleanup-startmenu.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-03-08 19:38:12 +01:00
|
|
|
rem ... stupid os problem #3
|
|
|
|
call cleanup-programlist.cmd
|
|
|
|
echo.
|
|
|
|
|
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
|
|
|
|
|