Network Address Translation (NAT) Cmdlets in Windows PowerShell

Windows PowerShell® est un interpréteur en ligne de commande et un langage de script basé sur des tâches, conçu spécialement pour l’administration système. Cette rubrique de référence pour les informaticiens fournit une assistance sur l’utilisation des applets de commande Windows PowerShell pour écrire des scripts et automatiser des tâches.

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.

Notes

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

Pour plus d’informations sur les applets de commande ou leur syntaxe, utilisez l’applet de commande Get-Help <nom de l’applet de commande>, où <nom de l’applet de commande> est le nom de l’applet de commande que vous voulez rechercher. Pour plus d’informations, vous pouvez exécuter les applets de commande suivantes :

Get-Help <nom de l’applet de commande> -Detailed
Get-Help <nom de l’applet de commande> -Examples
Get-Help <nom de l’applet de commande> -Full