forked from actions/runner-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Set the dynamic port range to start at port 49152 and to en…
…d at the 65536 (16384 ports) (actions#1442) * set the dynamic port range * update pester test * update context about VS installer * update dynamicports pester test
- Loading branch information
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# https://support.microsoft.com/en-us/help/929851/the-default-dynamic-port-range-for-tcp-ip-has-changed-in-windows-vista | ||
# The new default start port is 49152, and the new default end port is 65535. | ||
# Default port configuration was changed during image generation by Visual Studio Enterprise Installer to: | ||
# Protocol tcp Dynamic Port Range | ||
# --------------------------------- | ||
# Start Port : 1024 | ||
# Number of Ports : 64511 | ||
Write-Host "Set the dynamic port range to start at port 49152 and to end at the 65536 (16384 ports)" | ||
$null = netsh int ipv4 set dynamicport tcp start=49152 num=16384 | ||
$null = netsh int ipv4 set dynamicport udp start=49152 num=16384 | ||
$null = netsh int ipv6 set dynamicport tcp start=49152 num=16384 | ||
$null = netsh int ipv6 set dynamicport udp start=49152 num=16384 | ||
|
||
Invoke-PesterTests -TestFile "WindowsFeatures" -TestName "DynamicPorts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters