This is an old revision of the document!
@echo off if not "%USERNAME%" == "baduser" goto END if "%USERNAME%" == "baduser" goto LOGOFF :LOGOFF shutdown /l :END