@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.