diff --git a/PsExec.exe b/PsExec.exe new file mode 100644 index 0000000..446a8df Binary files /dev/null and b/PsExec.exe differ diff --git a/TPM.ps1 b/TPM.ps1 new file mode 100644 index 0000000..6e01a04 --- /dev/null +++ b/TPM.ps1 @@ -0,0 +1,3 @@ +get-tpm +get-CimInstance Win32_BaseBoard +Get-CimInstance Win32_BIOS | select \ No newline at end of file diff --git a/admin.bat b/admin.bat new file mode 100644 index 0000000..e563ee5 --- /dev/null +++ b/admin.bat @@ -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 \ No newline at end of file diff --git a/aus.bat b/aus.bat new file mode 100644 index 0000000..458fc91 --- /dev/null +++ b/aus.bat @@ -0,0 +1 @@ +powershell.exe -ExecutionPolicy Bypass -File "C:\temp\lesen.ps1"