NetTrace

1.2.2

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 true Windows Service persistence that survives user
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 true Windows Service persistence that survives user logouts and system reboots.
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

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

Install-PSResource -Name NetTrace

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.2: CRITICAL FIX - Implemented true Windows Service persistence using NSSM. Previous v1.2.1 used PowerShell jobs which terminated on user logout, breaking persistence promise. Now uses genuine Windows Services that survive user session termination and system reboots. Updated service architecture to use NSSM for proper service management. All existing commands work identically - no breaking changes. v1.2.1: Implemented service-based persistence architecture. 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.2 (current version) 5 7/9/2025
1.2.1 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