CmdID / PowerShell / Cmdlets / Set
Set-NetFirewallPortFilter
Modifies port filter objects, thereby modifying the protocol and port conditions using the Protocol, LocalPort, RemotePort, IcmpType, and DynamicTransport parameters of the firewall or IPsec rules. Windows Server PowerShell reference
From the Windows Server PowerShell reference 14 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DynamicTarget, -DynamicTransportSpecifies a dynamic transport.-GPOSessionSpecifies the network GPO from which to retrieve the rules to be modified.-IcmpTypeSpecifies the Internet Control Message Protocol (ICMP) type codes.-InputObjectSpecifies the input object that is used in a pipeline command.-LocalPortSpecifies that network packets with matching IP port numbers match this rule.-PassThruReturns an object representing the item with which you are working.-PolicyStoreSpecifies the policy store from which to retrieve the rules to be modified.-ProtocolSpecifies that network packets with matching IP addresses match this rule.-RemotePortSpecifies that network packets with matching IP port numbers match this rule.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.