(view source code of checkdst.bat as plain text)
@ECHO OFF
:: Check Windows versionIF NOT "%OS%"=="Windows_NT" GOTO Syntax
:: Check command line arguments -- none requiredIF NOT "%~1"=="" GOTO Syntax
:: Display header -- on screen only>CON ECHO Computers without automatic DST adjustment:
:: Find active computers without DST adjustmentFOR /F %%A IN ('NET.EXE VIEW ^| FIND.EXE "\\"') DO (
FOR /F "tokens=5 delims=\ " %%B IN ('NET.EXE TIME %%A 2>NUL ^| FIND.EXE "Local time"') DO (
ECHO.%%B
)):: DoneGOTO:EOF
:SyntaxECHO.
ECHO CheckDST.bat, Version 1.00 for Windows NT 4 and later
ECHO Check which active computers don't have automatic DST adjustment.
ECHO.
ECHO Usage: CHECKDST
ECHO.
ECHO Note: This check should only be performed during DST,
ECHO otherwise the list will be empty.
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
page last modified: 2025-10-11; loaded in 0.0075 seconds