Remove-NetNat (NetNat) (2024)

  • Reference
Module:
NetNat

Removes NAT objects.

Syntax

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

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.

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.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

The cmdlet immediately returns an object that represents the job and then displays the command prompt.You can continue to work in the session while the job completes.To manage the job, use the *-Job cmdlets.To get the job results, use the Receive-Job cmdlet.

For more information about Windows PowerShell background jobs, see about_Jobs.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer.Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet.The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the input to this cmdlet.You can use this parameter, or you can pipe the input to this cmdlet.

Type:CimInstance[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies an array of names of NAT objects.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Returns an object representing the item with which you are working.By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet.If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

CimInstance

Remove-NetNat (NetNat) (2024)
Top Articles
Is Your Goldfish Happy? – Your Aquarium
The Business Environment in Emerging Markets: A Landscape of Opportunities and Challenges
What Did Bimbo Airhead Reply When Asked
Skylar Vox Bra Size
Avonlea Havanese
Dew Acuity
From Algeria to Uzbekistan-These Are the Top Baby Names Around the World
St Petersburg Craigslist Pets
Ribbit Woodbine
Nestle Paystub
Turning the System On or Off
Mile Split Fl
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
Canvas Nthurston
Der Megatrend Urbanisierung
Schedule 360 Albertsons
Moving Sales Craigslist
Nhl Tankathon Mock Draft
Hermitcraft Texture Pack
Quadcitiesdaily
Robeson County Mugshots 2022
Vegas7Games.com
Keci News
Providence Medical Group-West Hills Primary Care
Anotherdeadfairy
Weve Got You Surrounded Meme
Обзор Joxi: Что это такое? Отзывы, аналоги, сайт и инструкции | APS
Craigslist Apartments In Philly
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
Greater Orangeburg
+18886727547
Rubmaps H
Swgoh Boba Fett Counter
EST to IST Converter - Time Zone Tool
RFK Jr., in Glendale, says he's under investigation for 'collecting a whale specimen'
Envy Nails Snoqualmie
Gas Prices In Henderson Kentucky
The Ride | Rotten Tomatoes
Greater Keene Men's Softball
SOC 100 ONL Syllabus
Wait List Texas Roadhouse
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
Lucifer Morningstar Wiki
Port Huron Newspaper
Cult Collectibles - True Crime, Cults, and Murderabilia
Stitch And Angel Tattoo Black And White
Acuity Eye Group - La Quinta Photos
About us | DELTA Fiber
The Goshen News Obituary
King Fields Mortuary
Primary Care in Nashville & Southern KY | Tristar Medical Group
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 6472

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.