NetTrace

1.2.1

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.1

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

Install-PSResource -Name NetTrace -Version 1.2.1

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 Get-NetTraceStatus

PSEditions

Core Desktop

Dependencies

This module has no dependencies.

Release Notes

v1.2.1: Implemented true persistence using Windows Services for captures that survive user session termination and system reboots. Added Get-NetTraceStatus command for quick status checking. Enhanced -Persistence parameter to use service-based architecture for true persistence while maintaining backward compatibility. Added NetTrace-Service.ps1 and NetTrace-ServiceRunner.ps1 for service management. v1.2.0: Added persistence feature using native netsh trace persistent=yes parameter. v1.1.1: Removed #Requires -RunAsAdministrator directive to allow module loading in non-admin sessions. 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 (current version) 6 7/8/2025
1.2.0 6 7/8/2025
1.1.1 6 7/7/2025
1.1.0 12 7/4/2025
Show more