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-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-01-12 19:11:44 +01:00
|
|
|
echo.
|
|
|
|
echo #######################
|
|
|
|
echo ### GLOBAL settings ###
|
|
|
|
echo #######################
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
|
|
|
rem echo DISABLE firewall ...
|
|
|
|
rem netsh advfirewall set allprofiles state off
|
2021-01-12 19:11:44 +01:00
|
|
|
rem echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
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-exefiles.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-14 15:29:16 +01:00
|
|
|
rem this must be done EARLY!
|
|
|
|
call disable-updates.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
rem allow execution of any powershell script ...
|
|
|
|
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
|
|
|
|
|
|
|
call modify-powersettings.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-02-08 00:02:42 +01:00
|
|
|
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-01-31 00:41:55 +01:00
|
|
|
call install-far.cmd
|
|
|
|
echo.
|
|
|
|
|
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-20 18:54:54 +01:00
|
|
|
call install-vscode.cmd
|
2021-01-27 22:05:17 +01:00
|
|
|
echo.
|
|
|
|
|
2021-01-29 11:42:19 +01:00
|
|
|
call install-purebasic.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 14:10:59 +01:00
|
|
|
call install-go.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call install-python.cmd
|
|
|
|
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-01-12 17:01:34 +01:00
|
|
|
call install-firefox.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-01-12 22:04:21 +01:00
|
|
|
call install-emclient.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call install-softmaker.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-13 10:46:20 +01:00
|
|
|
call install-googledrive.cmd
|
2021-01-12 22:54:02 +01:00
|
|
|
echo.
|
|
|
|
|
2021-02-03 12:42:10 +01:00
|
|
|
call install-receiver.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-03 13:37:54 +01:00
|
|
|
call install-vlc.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call install-virtualbox.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
call install-antivir.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-02-28 14:10:59 +01:00
|
|
|
call install-desktoplinks.cmd
|
2021-02-03 12:42:10 +01:00
|
|
|
echo.
|
|
|
|
|
2021-01-29 12:30:37 +01:00
|
|
|
call install-logonscript.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 14:10:59 +01:00
|
|
|
call install-dbbrowser.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 15:24:20 +01:00
|
|
|
call install-totalcommander.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 16:31:43 +01:00
|
|
|
call install-teams.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 15:24:20 +01:00
|
|
|
call install-xnview.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-02-28 22:17:02 +01:00
|
|
|
rem add full access rights to all users on public icons!
|
|
|
|
icacls %PUBLIC%\Desktop\*.lnk /grant Users:F
|
|
|
|
|
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
|
|
|
|
|
|
|
call disable-autologon.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 ### 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-01-27 22:05:17 +01:00
|
|
|
rem ... remove ALL the stupid fucking microsoft TELEMETRY BULLSHIT!
|
2021-02-03 06:49:13 +01:00
|
|
|
rem call uninstall-telemetry.cmd
|
|
|
|
rem echo.
|
2021-01-20 21:18:46 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
rem echo ENABLE firewall ...
|
|
|
|
rem netsh advfirewall set allprofiles state on
|
2021-01-12 19:11:44 +01:00
|
|
|
rem echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-02-28 22:17:02 +01:00
|
|
|
rem echo rebooting ...
|
|
|
|
rem shutdown -g -t 0
|
2021-01-12 20:23:36 +01:00
|
|
|
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
|
|
|
|