PowerShell Logo Small

Set-NetNat



This is the built-in help made by Microsoft for the command 'Set-NetNat', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies settings for NAT objects.

SYNTAX


Set-NetNat [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-IcmpQueryTimeout <UInt32>] [-PassThru] [-TcpEstablishedConnectionTimeout <UInt32>]
[-TcpFilteringBehavior <FilteringBehaviorType>] [-TcpTransientConnectionTimeout <UInt32>] [-ThrottleLimit <Int32>] [-UdpFilteringBehavior <FilteringBehaviorType>]
[-UdpIdleSessionTimeout <UInt32>] [-UdpInboundRefresh <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-NetNat [-AsJob] [-CimSession <CimSession[]>] [-IcmpQueryTimeout <UInt32>] [-PassThru] [-TcpEstablishedConnectionTimeout <UInt32>] [-TcpFilteringBehavior
<FilteringBehaviorType>] [-TcpTransientConnectionTimeout <UInt32>] [-ThrottleLimit <Int32>] [-UdpFilteringBehavior <FilteringBehaviorType>] [-UdpIdleSessionTimeout <UInt32>]
[-UdpInboundRefresh <Boolean>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-NetNat cmdlet modifies settings for Network Address Translation (NAT) objects. NAT modifies IP address and port information in packet headers. Use this cmdlet to
modify the following:

-- Time-out values for ICMP and UDP sessions and TCP connections.
-- Behavior of TCP and UDP filtering.
-- Whether packets from external networks refresh UDP sessions.


Specify NAT objects to modify by using the Name parameter or by using the Get-NetNat cmdlet. Use the New-NetNat cmdlet to create NAT objects.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294379
Get-NetNat
New-NetNat
Remove-NetNat

REMARKS

<

Examples


Example 1: Modify settings for a NAT object

PS C:\> Set-NetNat -Name "TSQATenant" -TcpFilteringBehavior AddressDependentFiltering -UdpInboundRefresh $True



This command modifies a NAT object named TSQATenant. The command specifies a value of $True for the UdpInboundRefresh parameter, and, therefore, NAT refreshes UDP sessions
for both inbound and outbound packets. The command changes TCP filtering behavior to address dependent filtering.