Unblock-Port
SYNOPSIS
UnBlocks a given port or list of ports
SYNTAX
Unblock-Port [[-port] <String[]>] [[-protocol] <String>] [<CommonParameters>]
DESCRIPTION
By default will create Unblocking rules for both tcp and udp versions of the port list given. Also creates Unblocks for both inbound and outbound. Returns a list of the rules created
EXAMPLES
EXAMPLE 1
UnBlock-Port -port "1433-1434"
Will Unblock tcp and udp ports 1433 through 1434 which would Unblock incoming and outgoing mircosoft sql servers from being accessed over the network or even being browsed if they're using default ports The rule names would be `Unblock port 1433-1434 TCP inbound` `Unblock port 1433-1434 TCP outbound` `Unblock port 1433-1434 UDP inbound` `Unblock port 1433-1434 UDP outbound`
PARAMETERS
-port
The port or list of ports/port ranges to Unblock
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-protocol
Can be TCP, UDP, or BOTH defaults to Both
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.