You are on page 1of 1

net user %username% | findstr /r Administrator.

if %errorlevel% == 1 ( echo This is not an admin account ) else ( echo This is an admin account )

You might also like