(view source code of chknav.bat as plain text)
:: Windows NT or 2000 only
VER | FIND "Windows NT" >NUL
IF NOT ERRORLEVEL 1 GOTO ChkCLPar
VER | FIND "Windows 2000" >NUL
IF ERRORLEVEL 1 GOTO Syntax
:: No command line parameters necessary
:: Check for new servers.
:: Adjust to FIND filter to your own situation;
:: the one used below assumes all workstations
:: have a computer name starting with "PC"
:: Check all servers from server list
:: and list all Event Log entries about
:: viruses found by Norton Antivirus
:: Check if the server list exists and if
:: server is in the list, add server if not
TYPE servers.lst | FIND /I "%1" >NUL
IF NOT ERRORLEVEL 1 GOTO:EOF
ECHO Log all Norton Antivirus virus alerts from all servers' Event Logs.
ECHO directory, containing a list of all servers, one server per line,
ECHO no whitespace allowed.
ECHO write access).
ECHO The virus alerts will be logged (appended) to a tab delimited file
ECHO have write access).
ECHO This batch file uses DUMPEL from the Windows NT 4 Server Resource Kit.
ECHO You may need to modify the batch file's FIND filter to make sure only
ECHO servers are checked, and normal workstations aren't.
ECHO Written by Rob van der Woude
|page last uploaded: 2017-08-21, 14:26|