Windows – Batch – Check if User is Local Admin Posted onSeptember 10, 2018July 15, 2022AuthorMrNetTek net sessions >nul 2>&1 if %errorlevel%==0 echo User is admin