WinPE network installer
netcfg
- C:\Windows\system32\netcfg.exe /?
Output:
netcfg [-v] [-winpe] [-l <full-path-to-component-INF>] -c <p|s|c>
-i <comp-id>
-winpe installs TCP/IP, NetBIOS and Microsoft Client for Windows
preinstallation environment
-l provides the location of INF
-c provides the class of the component to be installed (p == Protocol,
s == Service, c == Client)
-i provides the component ID
The arguments must be passed in the order shown.
Examples:
netcfg -l c:\oemdir\myprot.inf -c p -i myprot
Installs protocol 'myprot' using c:\oemdir\myprot.inf
netcfg -c s -i MS_Server
Installs service 'MS_Server'
OR
netcfg [-v] -winpe
Example:
netcfg -v -winpe
Installs TCP/IP, NetBIOS, and Microsoft Client for Windows
preinstallation environment
OR
netcfg [-v] -q <comp-id>
Example:
netcfg -q MS_IPX
Displays if component 'MS_IPX' is installed
OR
netcfg [-v] -u <comp-id>
Example:
netcfg -u MS_IPX
Uninstalls component 'MS_IPX'
OR
netcfg [-v] -s <a|n>
-s provides the type of components to show (a == adapters,
n == net components)
Example:
netcfg -s n
Shows all installed net components
OR
netcfg [-v] -b <comp-id>
Example:
netcfg -b ms_tcpip
Shows binding paths containing 'MS_TCPIP'
OR
netcfg [-v] -m
Example:
netcfg -m
Outputs the binding map to NetworkBindingMap.txt in the current directory.
-v will also display the binding map to the console.
OR
netcfg -d
Example:
netcfg -d
Performs a cleanup on all networking devices.
This will require a reboot.
OR
netcfg -x
Example:
netcfg -x
Performs a cleanup on networking devices, skipping those without physical
object names.
This will require a reboot.
General Notes:
-v Run in verbose (detailed) mode
-? Displays this help information
Return Code: 0
C:\Windows\system32\netcfg.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 37376bytes |
| Creation Time | 2019/12/07 18:08:33 |
| LastWrite Time | 2019/12/07 18:08:33 |
| ProductVersion | 10.0.19041.1 |
| FileVersion | 10.0.19041.1 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 01504f3b8b252f5619c94fd65dc52842 |
| SHA1 | 864612baa46728b9605a38262486ab4f4d36e1b0 |
| SHA224 | 1dd59521e85670b561d78910772cb142984b0ad9115a6cca56cb840b |
| SHA256 | ead06f5f5eb67fdf1ccb25511d6d7ca38ddd307b4499274886e04bec53f1c76d |
| SHA384 | 8750352134c9820dc6bbd3e70175513d56bc83904bd80c937ba7134a28d8dbc9a43304dbdc7a91f3eb6eb0691009b2cc |
| SHA512 | 64cd48923524108c8e490c9ea5e6d629777e2ba3369841676148bf4844b22820311c82c9a0ccafed3bfea2921920572fbad1c003272e20ae611b507e34f62dae |