• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Generate Network Trace PowerShell Script

Posted on May 13, 2025

Troubleshooting network issues can feel like chasing ghosts, especially when you’re dealing with intermittent latency or app timeouts in complex environments. Enter the power of ControlUp and the Generate Network Trace script, just one of our many out-of-the-box scripts/automation to help you overcome those pesky problems while automating a solution for the future.

This PowerShell script automates the creation of a native Windows network trace in .etl format, then converts it into a .pcapng file using Microsoft’s official converter so that you can analyze it directly in Wireshark.

Why it’s useful:

  • Captures real-time network traffic for deep inspection.
  • Filters by IP, protocol (TCP, UDP, ICMP), and packet types (IPv4, IPv6, ARP).
  • Helpful in identifying handshake issues, packet loss, or app-level problems.
  • Designed to run as SYSTEM to capture low-level data, but warns that network shares may block this.

This script provides a precise view of what’s happening on the wire, whether isolating dropped connections, chasing TLS handshake failures, or validating firewall rules.

Built by @Guy Leech and available directly in the ControlUp Script Library. It requires admin rights and a bit of familiarity with PowerShell and Wireshark, but it gives you complete control over what’s captured and how it’s filtered.

Learn more: https://www.controlup.com/script-library-posts/generate-network-trace/

If you have questions, please join our community. You can ask us about our scripts and automations, and anything you have questions about! We are here to help you! Join us today!


Categories: Blog, ControlUp Scripts & Triggers
Topics: Automation, Automation & Alerting, ControlUp Script Library, Firewall, Microsoft Windows, PowerShell, Scripts, Security, SSL/TLS

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..