網路殼層 (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.

注意

本主題中,除了下列網路殼層 content 使用。In addition to this topic, the following Network Shell content is available.

有些 client 技術,例如動態主機設定通訊協定 (DHCP) client 和 BranchCache,也提供 netsh 命令可讓您設定 client 電腦正在執行 Windows 10。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) snap\ 時所提供的相同功能-中的每個網路伺服器角色或網路功能。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),時無法使用 Windows Server MMC 嵌入式管理單元中。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.

網路 Shell (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 命令本機或遠端管理執行 Windows Server 2016 和 Windows 10 電腦上的網路技術建置的指令碼與「批次檔案,您可以使用 Netsh 技術參考。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

網路殼層技術參考可供下載 TechNet 主題館的 Windows 協助 (.chm) 格式:Netsh 技術參考The Network Shell Technical Reference is available for download in Windows Help (.chm) format from TechNet Gallery: Netsh Technical Reference