NetTrace

1.2.0

PowerShell module for Windows network tracing using netsh trace with automatic circular file rotation and background monitoring. Features include configurable file size limits, circular buffer management, non-blocking operation, optional activity logging, technical diagnostics, administrator privilege validation, and persistent capture support that continues after sys
PowerShell module for Windows network tracing using netsh trace with automatic circular file rotation and background monitoring. Features include configurable file size limits, circular buffer management, non-blocking operation, optional activity logging, technical diagnostics, administrator privilege validation, and persistent capture support that continues after system reboot.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name NetTrace -RequiredVersion 1.2.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name NetTrace -Version 1.2.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Naveed Khan. All rights reserved.

Package Details

Author(s)

  • Naveed Khan

Tags

Network Tracing Netsh Windows ETL Monitoring Diagnostics Performance Troubleshooting Admin

Functions

NetTrace

PSEditions

Core Desktop

Dependencies

This module has no dependencies.

Release Notes

v1.2.0: Added persistence feature that enables network traces to continue after system reboot using native netsh trace persistent=yes parameter. New -Persistence parameter allows long-running captures that survive user session termination and system reboots. v1.1.1: Removed #Requires -RunAsAdministrator directive to allow module loading in non-admin sessions. Module now provides proper error message when run without admin privileges. Updated README with PowerShell Gallery installation instructions and admin privilege clarification. v1.1.0: Added optional logging functionality, fixed file counter accuracy, improved stop command reliability.

FileList

Version History

Version Downloads Last updated
1.2.3 3 7/10/2025
1.2.2 6 7/9/2025
1.2.1 6 7/8/2025
1.2.0 (current version) 6 7/8/2025
1.1.1 6 7/7/2025
1.1.0 12 7/4/2025
Show more