Check Admin Rights
Prüfen, ob administrative Rechte gegeben sind.
@echo off :CheckRights net session >nul 2>&1 if not %errorLevel% == 0 (goto NOADMIN) else (goto ISADMIN) :NOADMIN echo. echo ERR: no administrative permissions timeout /t 5 goto END :ISADMIN echo. echo Administrative permissions confirmed goto END :END echo. pause
windows/batch/check-admin-rights.txt · Zuletzt geändert: 12.12.2023 13:12 von Martin