網路殼層(Netsh)Network Shell (Netsh)

適用於:Windows Server (半年通道),Windows Server 2016Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

網路殼層 (netsh) 是命令列公用程式,可讓您設定並將它們安裝在執行 Windows Server 2016 的電腦上後顯示各種網路通訊伺服器角色和元件的狀態。Network shell (netsh) is a command-line utility that allows you to configure and display the status of various network communications server roles and components after they are installed on computers running Windows Server 2016.

某些用戶端技術,例如動態主機設定通訊協定(DHCP)用戶端和 BranchCache,也提供可讓您設定執行 Windows 10 的用戶端電腦的 netsh 命令。Some client technologies, such as Dynamic Host Configuration Protocol (DHCP) client and BranchCache, also provide netsh commands that allow you to configure client computers that are running Windows 10.

在大部分情況下,netsh 命令提供相同的功能所提供當您使用 Microsoft Management Console (MMC)貼齊-中針對每個網路的伺服器角色或網路功能。In most cases, netsh commands provide the same functionality that is available when you use the Microsoft Management Console (MMC) snap-in for each networking server role or networking feature. 例如,您可以設定網路原則伺服器(NPS)使用 NPS MMC 嵌入式管理單元或中的 netsh 命令netsh nps內容。For example, you can configure Network Policy Server (NPS) by using either the NPS MMC snap-in or the netsh commands in the netsh nps context.

此外,還有適用於網路技術的 netsh 命令這類 IPv6 」、 「 網路橋接器,和 「 遠端程序呼叫(RPC),不是 MMC 嵌入式管理單元的 Windows Server 中。In addition, there are netsh commands for network technologies, such as for IPv6, network bridge, and Remote Procedure Call (RPC), that are not available in Windows Server as an MMC snap-in.

重要

建議使用 Windows PowerShell 管理網路技術的Windows Server 2016 和 Windows 10而不是網路介面。It is recommended that you use Windows PowerShell to manage networking technologies in Windows Server 2016 and Windows 10 rather than Network Shell. 網路殼層包含與您的指令碼的相容性,但可支援其使用。Network Shell is included for compatibility with your scripts, however, and its use is supported.

網路殼層 (Netsh) 技術參考Network Shell (Netsh) Technical Reference

Netsh 技術參考提供完整的 netsh 命令參考,包括語法、 參數和 netsh 命令的範例。The Netsh Technical Reference provides a comprehensive netsh command reference, including syntax, parameters, and examples for netsh commands. 您可以使用 Netsh 技術參考,來建置指令碼和批次檔使用 netsh 命令的網路技術,在執行 Windows Server 2016 和 Windows 10 電腦上的本機或遠端管理。You can use the Netsh Technical Reference to build scripts and batch files by using netsh commands for local or remote management of network technologies on computers running Windows Server 2016 and Windows 10.

內容的可用性Content availability

網路介面技術參考是可供下載 Windows 協助(*.chm)從 TechNet 組件庫的格式:Netsh 技術參考The Network Shell Technical Reference is available for download in Windows Help (*.chm) format from TechNet Gallery: Netsh Technical Reference