Advertisement
Guest User

Sysmon.bat

a guest
Feb 24th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. copy /z /y "\\domain.com\apps\config.xml" "C:\windows\"
  2. sysmon -c c:\windows\config.xml
  3.  
  4. sc query "Sysmon" | Find "RUNNING"
  5. If "%ERRORLEVEL%" EQU "1" (
  6. goto startsysmon
  7. )
  8. :startsysmon
  9. net start Sysmon
  10.  
  11. If "%ERRORLEVEL%" EQU "1" (
  12. goto installsysmon
  13. )
  14. :installsysmon
  15. "\\domain.com\apps\sysmon.exe" /accepteula -i c:\windows\config.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement