CmdID / PowerShell / Cmdlets / Set
Set-NetFirewallRule
Modifies existing firewall rules. Windows Server PowerShell reference
From the Windows Server PowerShell reference 42 parameters Its page in the reference
Parameters
Show its 42 parameters
-ActionSpecifies that matching firewall rules of the indicated action are modified.-AsJobRuns the cmdlet as a background job.-AuthenticationSpecifies that authentication is required on firewall rules.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DescriptionSpecifies that matching firewall rules of the indicated description are modified.-DirectionSpecifies that matching firewall rules of the indicated direction are modified.-DisplayGroupSpecifies that only matching firewall rules of the indicated group association are modified.-DisplayNameSpecifies that only matching firewall rules of the indicated display name are modified.-DynamicTarget, -DynamicTransportSpecifies a dynamic transport.-EdgeTraversalPolicySpecifies that matching firewall rules of the indicated edge traversal policy are modified.-EnabledSpecifies that matching firewall rules of the indicated state are modified.-EncryptionSpecifies that encryption in authentication is required on firewall rules.-GroupSpecifies that only matching firewall rules of the indicated group association are modified.-IcmpTypeSpecifies the ICMP type codes.-InputObjectSpecifies the input object that is used in a pipeline command.-InterfaceAliasSpecifies the alias of the interface that applies to the traffic.-InterfaceTypeSpecifies that only network connections made through the indicated interface types are subject to the requirements of this rule.-LocalAddressSpecifies that network packets with matching IP addresses match this rule.-LocalOnlyMappingIndicates that matching firewall rules of the indicated value are modified.-LocalPortSpecifies that network packets with matching IP port numbers match this rule.-LocalUserSpecifies the principals to which network traffic this firewall rule applies.-LooseSourceMapping, -LSMIndicates that matching firewall rules of the indicated value are modified.-Name, -IDSpecifies that only matching firewall rules of the indicated name are modified.-NewDisplayNameSpecifies the new display name for a firewall rule.-OverrideBlockRulesIndicates that matching network traffic that would otherwise be blocked is allowed.-OwnerSpecifies that matching firewall rules of the indicated owner are modified.-PackageSpecifies the Windows Store application to which the firewall rule applies.-PassThruReturns an object representing the item with which you are working.-PlatformSpecifies which version of Windows the associated rule applies.-PolicyStoreSpecifies the policy store from which to retrieve the rules to be modified.-ProfileSpecifies one or more profiles to which the rule is assigned.-ProgramSpecifies the path and file name of the program for which the rule allows traffic.-ProtocolSpecifies that network packets with matching IP addresses match this rule.-RemoteAddressSpecifies that network packets with matching IP addresses match this rule.-RemoteDynamicKeywordAddressesSpecifies dynamic keyword addresses that match this rule.-RemoteMachineSpecifies that matching IPsec rules of the indicated computer accounts are modified.-RemotePortSpecifies that network packets with matching IP port numbers match this rule.-RemoteUserSpecifies that matching IPsec rules of the indicated user accounts are modified.-ServiceSpecifies the short name of a Windows Server 2012 service to which the firewall rule applies.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.