consider the following script
@echo off
setlocal
set PATHTOFIXES=\\servername/path
if exist "%SYSTEMROOT%\KB840315.log" exit:
if exist "%SYSTEMROOT%\KB840315.log" exit:
"%PATHTOFIXES%\Windows2000-KB840315-x86-ENU.EXE" /quiet /norestart
"%PATHTOFIXES%\Windows2000-KB841873-x86-ENU.EXE" /quiet /norestart
"%PATHTOFIXES%\qchain.exe"
exit:
what i am looking for is samples of scripts where LAN segment IP can be detected based on the client IP, then maps to the server located in the same IP segment. For example if i have a client located @ headquarters, which then travels to a regional office and logs on to the domain, his Laptop will attempt to fetch the patch from headquarters, thus slowing everything down to a pupl...so i want that laptop to fetch the patch from the regional server where he/she is logging onto, not from headquarters...since obviously, they are separated on a slow WAN link.
Regards!
@echo off
setlocal
set PATHTOFIXES=\\servername/path
if exist "%SYSTEMROOT%\KB840315.log" exit:
if exist "%SYSTEMROOT%\KB840315.log" exit:
"%PATHTOFIXES%\Windows2000-KB840315-x86-ENU.EXE" /quiet /norestart
"%PATHTOFIXES%\Windows2000-KB841873-x86-ENU.EXE" /quiet /norestart
"%PATHTOFIXES%\qchain.exe"
exit:
what i am looking for is samples of scripts where LAN segment IP can be detected based on the client IP, then maps to the server located in the same IP segment. For example if i have a client located @ headquarters, which then travels to a regional office and logs on to the domain, his Laptop will attempt to fetch the patch from headquarters, thus slowing everything down to a pupl...so i want that laptop to fetch the patch from the regional server where he/she is logging onto, not from headquarters...since obviously, they are separated on a slow WAN link.
Regards!