Skip to content

Instantly share code, notes, and snippets.

@deruke

deruke/install.bat

Last active Feb 10, 2021
Embed
What would you like to do?
Sysmon and nxlog startup install script
@echo off
:install_nxlog
sc query "nxlog" | Find "RUNNING" >NUL
If NOT "%ERRORLEVEL%" EQU "1" (
goto install_sysmon
)
echo Installing NXLOG
\\domain.local\SYSVOL\software\nxlog-ce-2.9.1716.msi /quiet
copy /z /y “\\domain.local\SYSVOL\software\nxlog.conf" "C:\Program Files (x86)\nxlog\conf"
net start nxlog
:install_sysmon
sc query "sysmon" | Find "RUNNING" >NUL
If NOT "%ERRORLEVEL%" EQU "1" (
goto exit
)
echo Installing SYSMON
\\domain.local\SYSVOL\software\sysmon64.exe /accepteula -i \\domain.local\SYSVOL\software\sysmonconfig.xml
net start sysmon
:exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment