mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
14
images/windows/scripts/build/Configure-DynamicPort.ps1
Normal file
14
images/windows/scripts/build/Configure-DynamicPort.ps1
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user