Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created April 1, 2020 03:36
Show Gist options
  • Select an option

  • Save manualbashing/b532e270f06b02cb97429a7ffc9cd0ba to your computer and use it in GitHub Desktop.

Select an option

Save manualbashing/b532e270f06b02cb97429a7ffc9cd0ba to your computer and use it in GitHub Desktop.
Use procmon remotely #sysinternals
# https://4sysops.com/archives/using-process-monitor-procmon-remotely/
@echo off
Psexec.exe -sd \\%1 procmon -accepteula -backingfile c:\temp\proc.pml -quiet
Pause
Psexec.exe -sd \\%1 procmon -accepteula -terminate -quiet
Xcopy \\%1\c$\temp\proc.pml c:\temp\
Del \\%1\c$\temp\proc.pml
Procmon.exe /openlog c:\temp\proc.pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment