Schedule a task to update TNS files

When you have a central file that controls workstation behavior (such as Oracle database locations), you want to automatically copy it down to the workstations each day, so you use a scheduled task.  You use SCCM to deploy the task. 

Advertisements

Remove app, install MS Updates, install app

This is for a particular app that had some update requirements. @Echo on REM Uninstall ININ / ICIC elements, apply MS patches, Install latest ININ / ICIC elements REM 26-Jun-2017 REM Roger C. Set MyVer=1.8.1.0 Set MyError=NO Set MyWarning=NO set DEBUGGING=NO Call :InitLog if "%DEBUGGING%"=="YES" @echo on REM ============================================================== REM Set some required variables based … Continue reading Remove app, install MS Updates, install app

Simple batch file for testing system status

[BATCH script] @Echo off Set Version=1.6.1.0 Set Leader= set HOSTNAME=LOCALHOST rem set HostName=DT6761 if not "%1"=="" set HOSTNAME=%1 Call :Test %HostName% goto :EOF :Test rem goto :skip1 rem @ECHO ON echo ===[ %HOSTNAME% ]========= rem ============================= Echo Check NSLOOKUP rem ============================= NSLOOKUP %HOSTNAME% 2>nul|find /i "Name:">Nul if NOT errorlevel 1 ( echo %Leader% %HOSTNAME% DNS … Continue reading Simple batch file for testing system status

Installing Oracle, with some tricks along the way

This routine will install Oracle from a network location, and also copy some files, and put some things into the registry.  It is fully logged and includes some error checking. Features: Check registry for a value using REG QUERY Wait for process to end using TASKLIST Loop while waiting (using TIMEOUT) for processor utilization to … Continue reading Installing Oracle, with some tricks along the way