Dateien nach "/" hochladen
This commit is contained in:
29
Start_GUI3.bat
Normal file
29
Start_GUI3.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
|
||||
:START
|
||||
|
||||
set VERZ=%~dp0
|
||||
set computer_list=%verz%\rechner.txt
|
||||
set TPM=%verz%\LOGS\TPMneu.log
|
||||
set TDATEI=\\%%c\c$\TPMT6.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%TPM.ps1" "\\%%c\c$\temp\TPM.ps1"
|
||||
date /t >>%TPM%
|
||||
time /t >>%TPM%
|
||||
echo %%c >>%TPM%
|
||||
psexec -s \\%%c Powershell -ExecutionPolicy Bypass -File c:\temp\TPM.ps1 >>%TPM%
|
||||
copy "%VERZ%\TPM.log" "%TDATEI%" )
|
||||
)
|
||||
)
|
||||
goto START
|
||||
pause
|
||||
|
||||
|
||||
Reference in New Issue
Block a user