Network Address Translation (NAT) Cmdlets in Windows PowerShell

O Windows PowerShell® é um shell de linha de comando baseado em tarefas e uma linguagem de script desenvolvida especialmente para a administração do sistema. Este tópico de referência para os profissionais de TI (tecnologia da informação) oferece assistência para a utilização de cmdlets do Windows PowerShell para criar scripts e automatizar tarefas.

Network Address Translation (NAT) Cmdlets

This reference provides cmdlet descriptions and syntax for all Network Address Translation cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

Cmdlet Description

Add-NetNatExternalAddress

Adds an external address to a NAT instance.

Add-NetNatStaticMapping

Adds a static mapping to a NAT instance.

Get-NetNat

Gets NAT objects.

Get-NetNatExternalAddress

Gets external addresses configured for NAT instances.

Get-NetNatGlobal

Retrieves global settings for all NAT instances on a computer.

Get-NetNatSession

Gets all active NAT sessions.

Get-NetNatStaticMapping

Gets static mappings configured on NAT instances.

New-NetNat

Creates a NAT object.

Remove-NetNat

Removes NAT objects.

Remove-NetNatExternalAddress

Removes an external address from a NAT instance.

Remove-NetNatStaticMapping

Removes static mappings from a NAT instance.

Set-NetNat

Modifies settings for NAT objects.

Set-NetNatGlobal

Modifies global settings for NAT instances on a computer.

Observação

To list all the cmdlets that are available, use the Get-Command –Module NetNat cmdlet.

Para obter mais informações sobre qualquer cmdlet ou sua sintaxe, use o cmdlet Get-Help <nome do cmdlet>, em que <nome do cmdlet> é o nome do cmdlet que você deseja pesquisar. Para obter informações mais detalhadas, você pode executar qualquer um dos seguintes cmdlets:

Get-Help <nome do cmdlet> -Detailed
Get-Help <nome do cmdlet> -Examples
Get-Help <nome do cmdlet> -Full