Dateien nach "/" hochladen

This commit is contained in:
2025-12-09 13:38:59 +01:00
commit ad48437655
5 changed files with 61 additions and 0 deletions

28
Start_GUI2.bat Normal file
View File

@@ -0,0 +1,28 @@
@echo off
:START
set VERZ=%~dp0
set computer_list=%verz%\rechner.txt
set TPM=%verz%\LOGS\TPM.log
set TDATEI=\\%%c\c$\TPMT2.log
for /F %%c in (%computer_list%) do (
PING -n 1 %%c
if exist %TDATEI% echo %%c >> %verz%\LOGS\LOGDATEIDA.log
if errorlevel 1 (
echo %%c >> %verz%\LOGS\rechnererr.log
) else (
if not exist %TDATEI% (
copy "%VERZ%HardwareReadiness.ps1" "\\%%c\c$\temp\HardwareReadiness.ps1"
echo %%c >>%TPM%
psexec -s \\%%c Powershell -ExecutionPolicy Bypass -File c:\temp\HardwareReadiness.ps1 >>%TPM%
copy "%VERZ%\TPM.log" "%TDATEI%"
echo Server %%c online>> %verz%\LOGS\rechnerueberprüft.log )
)
)
goto START
pause