How to use Packet Monitor (Pktmon) during troubleshooting
153
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:04 PM
Objective
Packet Monitor (Pktmon) should be used when detailed packet information is required during troubleshooting. This article outlines a basic way to perform the troubleshooting that Idira may require if networking issues are suspected.
Packet Monitor is available by default on Windows Server 2019 (Version 1809) and later, as well as Windows 10 and later.
For more information about Packet Monitor and its syntax, please refer to the Microsoft documentation: https://learn.microsoft.com/en-us/windows-server/networking/technologies/pktmon/pktmon
Environment
Privileged Access Manager (PAM, self-hosted)
Procedure
- Open a Command or PowerShell prompt as administrator, and browse to a directory of your choosing, e.g. C:\Temp
cd <directory path>
- Run the following command, where <address> is the endpoint you're initiating traffic to:
pktmon filter add -i <address>
- In the same prompt, run the following command to start the packet capture:
pktmon start -c
- Recreate the issue
- Run the following command to confirm the presence of expected traffic:
pktmon counters
- Stop the capture using the following command:
pktmon stop
- (Optional) Convert the .etl file that was generated to something that can be opened by a tool such as Wireshark for analysis:
pktmon etl2pcap <directory path>\PktMon.etl
Note: If it's necessary to capture packets both on the target and the source, you can run the steps on both machines at the same time. Ensure that the <address> in step 2 is the opposite server's address.