Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- copy /z /y "\\domain.com\apps\config.xml" "C:\windows\"
- sysmon -c c:\windows\config.xml
- sc query "Sysmon" | Find "RUNNING"
- If "%ERRORLEVEL%" EQU "1" (
- goto startsysmon
- )
- :startsysmon
- net start Sysmon
- If "%ERRORLEVEL%" EQU "1" (
- goto installsysmon
- )
- :installsysmon
- "\\domain.com\apps\sysmon.exe" /accepteula -i c:\windows\config.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement