(view source code of disabled.bat as plain text)
@ECHO OFF
ECHO.>CON
ECHO DISABLED, Version 1.00 for Windows NT 4 >CON
ECHO List all disabled user accounts >CON
ECHO.>CON
ECHO Written by Rob van der Woude >CON
ECHO http://www.robvanderwoude.com >CON
ECHO.>CON
ECHO Gathering data, this may take several minutes . . .>CON
ECHO.>CON
ECHO Account is disabled for the following user IDs:
ECHO.
FOR /F "skip=4 tokens=*" %%A IN ('NET USER /DOMAIN ^| FIND /V "The command completed successfully"') DO CALL :ParseUsers %%A
GOTO:EOF
:ParseUsers
FOR %%? IN (%*) DO CALL :ChkAcc %%?
GOTO:EOF
:ChkAcc
NET USER %1 /DOMAIN | FIND "Account active Yes" >NUL
IF ERRORLEVEL 1 ECHO.%1
GOTO:EOF
page last modified: 2024-04-16; loaded in 0.0065 seconds