Netsh commands for RPC
The Netsh commands for RPC provide a command-line tool that you can use to change, reset, or display either specified or all subnet and interface settings.
Interface refers to an IPv4 address that is active on the computer and has a network adapter associated with it. Subnet refers to a set of zero or more interfaces that resolve to the same subnet address when applied with the appropriate mask.
You can run the Netsh RPC commands from the command prompt for the netsh rpc context. For these commands to work at the Windows Server 2003 family command prompt, you must type netsh rpc before typing commands and parameters as they appear in the syntax below.
For more information about netsh, see Netsh overview and Enter a netsh context .
To view the command syntax, click a command:
add
Syntax
Parameters
Examples
add 192.168.255.255 172.16.1.0
delete
Syntax
Parameters
Examples
delete 192.168.255.255 172.16.1.0
show interfaces
Syntax
Parameters
show settings
Syntax
Parameters
reset
Syntax
Parameters
Note
- To run all of these commands (with the exception of show settings), you must either have administrative credentials or be a user with permission to write to the HKEY_LOCAL_MACHINE registry key.
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |