OSSEC Install

email me

This is how to install the OSSEC Agent using a simple batch script.

set CurDir=%CD%
"%CurDir%\ossec.exe" /S
if exist "C:\Program Files (x86)\ossec-agent\" (
copy /y "%CurDir%\ossec.conf" "C:\Program Files (x86)\ossec-agent\ossec.conf"
)
if exist "C:\Program Files\ossec-agent\" (
copy /y "%CurDir%\ossec.conf" "C:\Program Files\ossec-agent\ossec.conf"
)
exit /b 0