Share via


Netsh Commands for Remote Access

Applies To: Windows Server 2008, Windows Server 2008 R2

You can use commands in the Netsh ras context to configure all aspects of remote access. The Netsh commands for remote access provide the same functionality as the Routing and Remote Access console, and the commands can be run manually at the netsh prompt or in scripts and batch files.

To run these commands from the command prompt, you must either enter the netsh ras context or prepend the context to the command. For example, if you are at the command prompt but have not typed netsh and then ras to enter the netsh ras context, you must type:

netsh ras command

Where command is the command that you want to run, including all of the required parameters for the command.

For more information about Netsh, see Netsh Overview and Enter a Netsh Context.

For information on how to interpret netsh command syntax, see Formatting Legend.

Netsh remote access command reference

The Netsh commands for remote access are grouped by the following command categories.

Netsh RAS Commands. These commands allow you to configure many remote access settings, such as: tracing, link properties, and properties of remote access users.

Netsh RAS AAAA Context Commands. These commands allow you to view and configure the authentication, authorization, accounting, and auditing (AAAA) database used by the Routing and Remote Access service.

Netsh Routing Demanddial Context Commands. These commands allow you to view and configure demand-dial interface settings.

Netsh RAS Diagnostic Context Commands. These commands allow you to diagnose remote access connections and view logs.

Netsh RAS IP Context Commands. These commands allow you to view and configure IP-related remote access settings.

Netsh RAS IPv6 Context Commands. These commands allow you to view and configure IPv6-related remote access settings.