Network Address Translation (NAT) Cmdlets in Windows PowerShell

Windows PowerShell® ist eine aufgabenbasierte Befehlszeilenshell- und Skriptsprache, die speziell für die Systemverwaltung entwickelt wurde. Dieses Referenzthema für IT-Profis bietet Unterstützung beim Einsatz von Windows PowerShell-Cmdlets, um Skripts für Aufgaben zu erstellen und sie zu automatisieren.

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.

Hinweis

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

Um weitere Informationen zur Syntax beliebiger Cmdlets zu erhalten, verwenden Sie das Get-Help <Cmdlet-Name>-Cmdlet, wobei <Cmdlet-Name> der Name des Cmdlets ist, zu dem Sie Informationen wünschen. Um ausführlichere Informationen zu erhalten, können Sie die folgenden Cmdlets ausführen:

Get-Help <Cmdlet-Name> -Detailed
Get-Help <Cmdlet-Name> -Examples
Get-Help <Cmdlet-Name> -Full