diff --git a/tools/check-for-admin.cmd b/tools/check-for-admin.cmd new file mode 100644 index 0000000..a87f0e8 --- /dev/null +++ b/tools/check-for-admin.cmd @@ -0,0 +1,11 @@ +@echo off + +net session >nul 2>&1 +if NOT %ERRORLEVEL% == 0 ( + echo ERROR: User has NO ADMINISTRATOR rights! + pause + exit /b +) + +echo OK. User is an ADMINISTRATOR. +echo.