Set-PncDynamicPortRange
1.0
Servers running the Microsoft Entra Private Network Connector service (WAPCSvc) may exhaust the default Windows
dynamic port range under heavy load, resulting in failed connections. This script expands the dynamic port range
for both TCP and UDP over IPv4 and IPv6 to ports 10000-65535, increasing the number of available ephemeral ports.
The script first validates tha
dynamic port range under heavy load, resulting in failed connections. This script expands the dynamic port range
for both TCP and UDP over IPv4 and IPv6 to ports 10000-65535, increasing the number of available ephemeral ports.
The script first validates tha
Servers running the Microsoft Entra Private Network Connector service (WAPCSvc) may exhaust the default Windows
dynamic port range under heavy load, resulting in failed connections. This script expands the dynamic port range
for both TCP and UDP over IPv4 and IPv6 to ports 10000-65535, increasing the number of available ephemeral ports.
The script first validates that the Entra Private Network Connector service is present and running and makes no
changes otherwise. A server restart is required for the changes to take effect.
Show more
dynamic port range under heavy load, resulting in failed connections. This script expands the dynamic port range
for both TCP and UDP over IPv4 and IPv6 to ports 10000-65535, increasing the number of available ephemeral ports.
The script first validates that the Entra Private Network Connector service is present and running and makes no
changes otherwise. A server restart is required for the changes to take effect.
Installation Options
Owners
Copyright
Copyright (C) 2026 Richard M. Hicks Consulting, Inc. All Rights Reserved.
Package Details
Author(s)
- Richard Hicks
Tags
Entra PrivateNetworkConnector PrivateAccess GlobalSecureAccess DynamicPortRange ZTNA ZeroTrust TCP UDP IPv4 IPv6
Dependencies
This script has no dependencies.
FileList
- Set-PncDynamicPortRange.nuspec
- Set-PncDynamicPortRange.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0 (current version) | 4 | 7/28/2026 |