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-01-12 20:23:36 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
echo ####### %0 #######
|
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%
|
|
|
|
|
|
|
|
echo moving files in deploy folder to %TOOLS% ...
|
2021-01-12 19:11:44 +01:00
|
|
|
move /Y deploy\* %TOOLS%
|
2021-01-12 17:01:34 +01:00
|
|
|
rmdir deploy 1>nul 2>nul
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
call install-tweaks.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 ### UNINSTALL tasks ###
|
|
|
|
echo #######################
|
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
2021-01-12 19:11:44 +01:00
|
|
|
rem uninstall ALL Apps (but keep the store) ...
|
2021-01-12 17:01:34 +01:00
|
|
|
powershell -Command .\uninstall-apps.ps1
|
2021-01-12 19:11:44 +01:00
|
|
|
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
|
|
|
|
|
|
|
call install-logonscript.cmd
|
2021-01-12 19:11:44 +01:00
|
|
|
echo.
|
2021-01-12 17:01:34 +01:00
|
|
|
|
|
|
|
call install-desktopicons.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-27 22:05:17 +01:00
|
|
|
powershell -Command .\install-wterminal.ps1
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call install-sublime.cmd
|
|
|
|
echo.
|
|
|
|
|
2021-01-29 11:42:19 +01:00
|
|
|
call install-purebasic.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-01-12 22:54:02 +01:00
|
|
|
call install-gsync.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-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
|
|
|
|
|
|
|
rem this must be done as late as possible ... stupid os problem
|
|
|
|
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-01-20 21:18:46 +01:00
|
|
|
call uninstall-telemetry.cmd
|
|
|
|
echo.
|
|
|
|
|
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-01-12 20:23:36 +01:00
|
|
|
echo rebooting ...
|
|
|
|
shutdown -g -t 0
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
echo READY.
|
2021-01-14 00:03:49 +01:00
|
|
|
echo.
|