PowerShell Logo Small

Remove-NetNat



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

Removes NAT objects.

SYNTAX


Remove-NetNat [[-Name] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetNat [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-NetNat cmdlet removes Network Address Translation (NAT) objects. NAT modifies IP address and port information in packet headers. When you remove a NAT object, NAT
no longer does that translation. NAT drops any existing connections created through that NAT object.


Specify a value for the Name parameter to remove specific NAT objects. To remove all the NAT objects from a computer, do not include the Name parameter. You can use the
Get-NetNat cmdlet to specify NAT objects to delete.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1: Remove all NAT objects on a computer

PS C:\> Remove-NetNat



This command removes all the NAT objects on the current computer.