How to collect remote Procmon traces

How to collect remote Procmon traces

book

Article ID: CTX232699

calendar_today

Updated On:

Description

To collect procmon traces remotely 


Instructions

In the example I'll reference local machine as "A" and remote machine (on which we want to collect logs from) as "B"

  1. Download PsExec tool on machine A (https://docs.microsoft.com/en-us/sysinternals/downloads/psexec)
  2. Download Procmon on machine B (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon)
  3. On Machine A, run Cmd as Administrator and navigate to the folder were you downloaded PsExec tool, and run the cmd >                                          PsExec.exe \\<Hostname or IP of machine B> cmd.exe

              Example:: C:\Users\Administrator\Downloads\PSTools>PsExec.exe \\10.107.141.16 cmd.exe

        4. Navigate to the folder were you've downloaded procmon tool

                C:\Users\Administrator\Downloads\PSTools>PsExec.exe \\10.107.141.16 cmd.exe

                PsExec v2.2 - Execute processes remotely

               C:\Windows\system32>cd c:\processmonitor

        5. Run the below cmd (NOTE: the cmd needs to run twice)

              c:\ProcessMonitor>procmon.exe -accepteula /backingfile c:\log.pml /quiet

               c:\ProcessMonitor>procmon.exe -accepteula /backingfile c:\log.pml /quiet

         6. Repro the issue.
         7. Run the below cmd to stop procmon trace (NOTE: the cmd needs to run twice)

               c:\ProcessMonitor>procmon.exe /terminate

               c:\ProcessMonitor>procmon.exe /terminate

         8. Close the procmon process, by running the "exit" cmd

               c:\ProcessMonitor>exit

               cmd.exe exited on 10.107.141.16 with error code 0.

NOTE: Error Code should be "0"

         9. Wait for couple of minutes - it takes a bit for procmon to properly shut down.

         10.After a moment, Logs must be available on machine "B" and you can kill any rogue procmon process on the machine B.

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Additional Information

User-added image
The above screenshot and IP details are from Citrix internal lab machine.