w10install/tools/check-for-admin.cmd
Michael H.G. Schmidt 797daa23a1 normal Users ... #61
2022-11-13 22:12:39 +01:00

12 lines
180 B
Batchfile

@echo off
net session >nul 2>&1
if NOT %ERRORLEVEL% == 0 (
echo ERROR: User has NO ADMINISTRATOR rights!
pause
exit
)
echo OK. User is an ADMINISTRATOR.
echo.