2022-06-18 10:41:57 +02:00
|
|
|
@echo off
|
|
|
|
rem this script copies the tools folder ...
|
|
|
|
|
2023-02-16 13:37:41 +01:00
|
|
|
set T=%SystemDrive%\TEMP
|
|
|
|
set TOOLS=%SystemDrive%\tools
|
2022-06-18 10:41:57 +02:00
|
|
|
set SCRIPTS=%TOOLS%\scripts
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
echo killing ssh agent ...
|
|
|
|
taskkill /F /IM ssh-agent.exe
|
|
|
|
taskkill /F /IM ssh.exe
|
2023-02-15 19:05:06 +01:00
|
|
|
echo.
|
|
|
|
|
|
|
|
echo killing WinAuth ...
|
2022-11-25 22:19:53 +01:00
|
|
|
taskkill /F /IM WinAuth.exe
|
2022-06-18 10:41:57 +02:00
|
|
|
echo.
|
|
|
|
|
|
|
|
echo deleting %TOOLS% ...
|
|
|
|
rd /S /Q %TOOLS%
|
|
|
|
echo.
|
|
|
|
|
|
|
|
echo copying folder %TOOLS% ...
|
|
|
|
robocopy tools %TOOLS% /MIR /256 /V /NJH /NFL
|
|
|
|
echo.
|
|
|
|
|
|
|
|
echo creating %T% ...
|
|
|
|
mkdir %T% 1>nul 2>nul
|
|
|
|
echo.
|
|
|
|
|
|
|
|
echo cd to %SCRIPTS% ...
|
|
|
|
cd /D %SCRIPTS%
|
|
|
|
echo.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
rem put vnc in place ...
|
|
|
|
call unpack-vnc.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
rem copy some other stuff ...
|
|
|
|
call copy-executables.cmd
|
|
|
|
echo.
|
|
|
|
|
|
|
|
call install-git.cmd
|
|
|
|
echo.
|
|
|
|
|
2023-02-16 13:37:41 +01:00
|
|
|
move /Y %SCRIPTS%\set-permissions.cmd C:\
|
|
|
|
takeown /F %SystemDrive%\set-permissions.cmd /A
|
|
|
|
icacls %SystemDrive%\set-permissions.cmd /inheritance:r
|
|
|
|
icacls %SystemDrive%\set-permissions.cmd /grant Administrators:F
|
|
|
|
icacls %SystemDrive%\set-permissions.cmd /grant Users:RX
|
|
|
|
|
|
|
|
rem set ALL permissions ...
|
|
|
|
call %SystemDrive%\set-permissions.cmd
|
|
|
|
echo.
|
|
|
|
|
2022-06-18 10:41:57 +02:00
|
|
|
echo ####### %0 #######
|
|
|
|
echo READY.
|
|
|
|
echo.
|
|
|
|
|
|
|
|
echo cd to %T% ...
|
|
|
|
cd /D %T%
|
|
|
|
echo.
|
|
|
|
|