:start
set /p LOGINNAME= Username:
NET USER %LOGINNAME% /DOMAIN | FIND /I "Account active"
SET /P RUNSCRIPT="Do you want to unlock %loginname%'s account? (Y/N) "
if %runscript%==y goto run
if %runscript%==Y goto run
if %runscript%==n goto continue
if %runscript%==N goto continue
goto begin
:run
NET USER %LOGINNAME% /DOMAIN /ACTIVE
:continue
SET /P RUNSCRIPT="Check another account? (Y/N) "
if %runscript%==y goto start
if %runscript%==Y goto start
if %runscript%==n goto end
if %runscript%==N goto end
goto begin
PAUSE