Network Address Translation (NAT) Cmdlets in Windows PowerShell

Windows PowerShell® 是工作型命令列殼層和指令碼語言,專為系統管理所設計。本參考主題適用於資訊技術 (IT) 專業人員,提供利用 Windows PowerShell Cmdlet 以執行指令碼和自動化工作的協助。

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.

注意

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

如需有關任何 Cmdlet 的詳細資訊或其語法,請使用 Get-help <Cmdlet 名稱> Cmdlet,其中 *<Cmdlet 名稱>*是您想要研究的 Cmdlet 的名稱。如需詳細資訊,您可以執行下列任何 Cmdlet:

Get-Help <Cmdlet 名稱> -Detailed
Get-Help <Cmdlet 名稱> -Examples
Get-Help <Cmdlet 名稱> -Full