Netsh.exe is a tool that an administrator can use to configure and monitor Windows-based computers, using the command prompt.
Netsh is made up of commands and scripts that are useful for the components of a network, both for local and remote computers.
The Netsh tool can also save a configuration script to a text file to configure other servers.
Netsh.exe allows you to perform the following tasks:
- Configure interfaces.
- Configure routing protocols.
- Configure filters.
- Configure routers.
- Configure remote access behavior for Windows-based routers running the Routing and Remote Access Server (RRAS) service.
- Show the configuration of a router that is running on any computer.
- Execute a group of commands in batches.
The syntax of the Netsh.exe tool is:
netsh [-r routername] [-a AliasFile] [-c Context] [Command | -f CommandFile]
Specifies that netsh commands be run on a remote computer specified by its name or IP address.
-a corresponds to a file (AliasFile)
An aliases file contains a list of netsh commands and an alias version, so you can use the alias command line instead of the netsh command.
Specifies the command context that corresponds to an installed helper DLL.
Specifies the netsh command to run.
Indicates the netsh commands to run.