How to use netsh
commands for remote access (ras)
You can administer remote
access servers by typing netsh and then ras. Following are some commands manage
RAS:
show
activeservers
show client
dump
show tracing
set tracing
show authmode
set authmode
add authtype
delete authtype
show authtype
add link
delete link
show link
add multilink
delete multilink
show multilink
add
registeredserver
delete
registeredserver
show
registeredserver
show user
set user
Netsh ras
diagnostics context commands
Netsh ras IP
context commands
Netsh ras
AppleTalk context commands
Netsh ras AAAA
context commands
How to open port 8080 using netsh
1) netsh -c firewall
2) set portopening tcp 8080
How to run netsh
To run a netsh command, you can start netsh from the Cmd.exe
prompt and change to the context that contains the command you want to use. Or
you can do netsh -c option. If the contexts that are not available to you, you
may receive an error message. For example, if you type netsh -c firewall
at the Netsh command prompt, you change to the firewall context, but if you do
not have firewall installed the following message appears:
The following command was not found: firewall.
How to run Netsh with a script
If you need to run netsh with many configurations, you can create a script
for each configuration and then run it using this command:
netsh f <scriptfile>
How to use netsh to
configure remote computer
You can configure remote computer uisng netsh with options -r for the machine,
-u for the username, and -p for the password, for example: