**Dies ist eine alte Version des Dokuments!**
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
notes/windows/batch/check-admin-rights.1634835274.txt.gz · Zuletzt geändert: 21.10.2021 16:54 von Martin