xxxxxxxxxx
$NatName = "InternalNat"
$InternalIPAddress = "192.168.0.50"
$Protocol = "TCP"
For ($port = 16000; $port -le 16010; $port++) {
Add-NetNatStaticMapping -NatName $NatName -Protocol $Protocol -ExternalIPAddress 0.0.0.0 -InternalIPAddress $InternalIPAddress -InternalPort $port -ExternalPort $port
}
For ($id = 18; $id -le 28; $id++) {
Remove-NetNatStaticMapping -StaticMappingID $id
}
xxxxxxxxxx
nums := // Array with custom size
res := make([]int, len(nums)) // Create array with the same size as nums