REM Writes the computer's IP address to c:\IPout.txt REM and then run checks on that address to see if it is REM logging in locally. echo off cls REM cleans up any old IPout.txt files del c:\ipout.txt cls echo - echo Please wait echo This may take a few moments echo This box will close automatically when finished echo - REM if modem connection, end REM modems have IP ranges from 172.16.1.225-.240 REM you can also add IP's you want to exclude to this section REM For Win 9x machines, replace the next line with: REM start /wait winipcfg /all /batch c:\ipout.txt ipconfig >c:\ipout.txt type c:\ipout.txt|find /i "172.16.1.22" IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto End_Zen type c:\ipout.txt|find /i "172.16.1.23" IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto End_Zen type c:\ipout.txt|find /i "172.16.1.24" IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto End_Zen REM if pass above checks, see if in our location REM our workstations all use .2 or .4 addresses type c:\ipout.txt|find /i "172.16.2." IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto zenNT type c:\ipout.txt|find /i "172.16.4." IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto zenNT goto End_Zen :ZenNT echo IP range valid for software installation REM runs the latest McAfee anti-virus file we put in the correct location: \\SERVER\sys\public\utils\auto\zendat\setup.exe /silent REM run NAL to execute any obejcts nalexpld REM the following are things we check on each time a computer logs in. The REM secondary batch file puts the c:\CHECK file, and if that exists, the REM update does not need to be run REM if exist c:\CHECK_hosts_030415.txt goto RUN1 REM CALL \\SERVER\sys\public\utils\auto\hosts\host_upd.bat REM :RUN1 REM if exist c:\CHECK_templ_10-31-03.txt goto RUN2 REM CALL \\SERVER\sys\public\utils\auto\templ\upd_temp.bat REM :RUN2 REM if exist "c:\Novell\ncshtdwn.exe" goto END_ZEN REM copy \\SERVER\sys\public\ZenWorks\MgtAgent_sp1b\ncshtdwn.exe c:\novell GOTO End_Zen :End_Zen del c:\ipout.txt