Skip to content

Instantly share code, notes, and snippets.

@minkione
Forked from deruke/install.bat
Created July 11, 2017 08:22
Show Gist options
  • Save minkione/2b05d3d6abb896758a53908ae8264df4 to your computer and use it in GitHub Desktop.
Save minkione/2b05d3d6abb896758a53908ae8264df4 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