PowerShell Logo Small

Get-NetNat



This is the built-in help made by Microsoft for the command 'Get-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

Gets NAT objects.

SYNTAX


Get-NetNat [[-Name] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetNat cmdlet gets Network Address Translation (NAT) objects configured on a computer. NAT modifies IP address and port information in packet headers.


Specify a value for the Name parameter to get specific NAT objects. To get all the NAT objects for a computer, do not include the Name parameter. You can use this cmdlet to
get NAT objects to modify by using the Set-NetNat cmdlet or NAT objects to remove by using the Remove-NetNat cmdlet.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1: Get all the NAT objects for the current computer

PS C:\> Get-NetNat



This command gets all the NAT objects for the current computer.