text
stringlengths
0
4.23k
/v
Runs in verbose (detailed) mode.
/e
Uses servicing environment variables during install and uninstall.
/winpe
Installs TCP/IP, NetBIOS, and Microsoft Client for Windows preinstallation environment (WinPE).
/l
Provides the location of the INF file.
/c
Provides the class of the component to be installed; protocol, service, or client.
/i <comp-ID>
Provides the component ID.
/s
Provides the type of components to show, including \ta for adapters or n for net components.
/b
Displays the binding paths, when followed by a string containing the name of the path.
/q <comp-ID>
Queries whether component ID is installed
/u <comp-ID>
Uninstalls the component ID.
/m
Outputs the binding map to NetworkBindingMap.txt in the current directory. Using with /v will also display the binding map to the console.
/d
Performs a cleanup on all networking devices. This will require a reboot.
/x
Performs a cleanup on networking devices, skipping those without physical object names. This will require a reboot.
/?
Displays help at the command prompt.
<comp-ID>
<comp-ID>
<comp-ID>
Examples
To install the protocol example using c:\oemdir\example.inf, type:
netcfg /l c:\oemdir\example.inf /c p /i example
To install the MS_Server service, type:
netcfg /c s /i MS_Server
To install TCP/IP, NetBIOS and Microsoft Client for Windows preinstallation environment, type:
netcfg /v /winpe
To display if component MS_IPX is installed, type:
netcfg /q MS_IPX
To uninstall component MS_IPX, type:
netcfg /u MS_IPX
To show all installed net components, type:
netcfg /s n
To display binding paths containing MS_TCPIP, type:
netcfg /b ms_tcpip
netsh
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016
The Network Shell command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a currently running computer. You can start this utility at the command prompt or in Windows PowerShell.
Syntax
netsh [-a <Aliasfile>][-c <Context>][-r <Remotecomputer>][-u [<domainname>\<username>][-p <Password> | [{<NetshCommand> | -f <scriptfile>}]
Parameters
Parameter
Description
-a <Aliasfile>
Specifies that you are returned to the netsh prompt after running Aliasfile and the name of the text file that contains one or more netsh commands.
-c <Context>
Specifies that netsh enters the specified netsh context and the netsh context to enter.