Dateien nach "/" hochladen

This commit is contained in:
2025-12-14 15:57:04 +01:00
parent f7074ef57f
commit c873f3a313
4 changed files with 31 additions and 0 deletions

BIN
PsExec.exe Normal file

Binary file not shown.

3
TPM.ps1 Normal file
View File

@@ -0,0 +1,3 @@
get-tpm
get-CimInstance Win32_BaseBoard
Get-CimInstance Win32_BIOS | select

27
admin.bat Normal file
View File

@@ -0,0 +1,27 @@
@echo off
chcp 65001 >nul
rem Speicherort der Batch als Arbeitsverzeichnis
cd /d "%~dp0"
net session >nul 2>&1 && goto :AdminBatch
rem selbststart als Admin
set "elevationCmdLine=cd /d "%cd%"&call "%~f0" %*"
set "elevationCmdLine=%elevationCmdLine:&=^&%"
set "elevator=%temp%\%~n0.elevate.js"
echo new ActiveXObject^("shell.application"^).ShellExecute^('cmd','/c %elevationCmdLine:\=\\%' ,'','runas',4^); >"%elevator%"
cscript //nologo "%elevator%"
exit /b
:AdminBatch
rem hier kommt alles rein was als Admin ausgeführt werden soll.
echo Hallo . Ich werde jetzt als Admin %UserName% ausgeführt.
if "%~1" neq "" (
echo Mir wurden folgende Parameter übergeben:
for %%a in (%*) do (echo %%a)
)
pause

1
aus.bat Normal file
View File

@@ -0,0 +1 @@
powershell.exe -ExecutionPolicy Bypass -File "C:\temp\lesen.ps1"