Skip to content

Instantly share code, notes, and snippets.

@thinkst-cs
Created September 7, 2022 19:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thinkst-cs/c48d357c665a9b590623206b5e349e1d to your computer and use it in GitHub Desktop.
Save thinkst-cs/c48d357c665a9b590623206b5e349e1d to your computer and use it in GitHub Desktop.
Monitoring Silent Process Exit
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SilentProcessExit\nltest.exe]
"ReportingMode"=dword:00000001
"MonitorProcess"="powershell.exe -Command \"Get-WmiObject win32_process -Filter 'ProcessID = %e' | select CreationDate,ProcessId,CommandLine >> C:\\\\Test\\\\Logcmdline.txt\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment