Dateien nach "/" hochladen
This commit is contained in:
28
Start_GUI2.bat
Normal file
28
Start_GUI2.bat
Normal 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
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
3
TPM.ps1
Normal file
3
TPM.ps1
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
get-tpm
|
||||||
|
get-CimInstance Win32_BaseBoard
|
||||||
|
Get-CimInstance Win32_BIOS | select
|
||||||
BIN
Win11.xlsx
Normal file
BIN
Win11.xlsx
Normal file
Binary file not shown.
1
rechner.txt
Normal file
1
rechner.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
audinec24192375.ne.audi.vwg
|
||||||
Reference in New Issue
Block a user