Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@deruke
Last active July 13, 2022 11:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save deruke/743a80c89740fdedcb7f8871cdf02536 to your computer and use it in GitHub Desktop.
Save deruke/743a80c89740fdedcb7f8871cdf02536 to your computer and use it in GitHub Desktop.
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