How to enable the Routing and Remote Access service silently from a command prompt (311953)



The information in this article applies to:

  • Microsoft Windows 2000 Server

This article was previously published under Q311953

IN THIS TASK

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

By default, when you install Windows 2000, the Routing and Remote Access service is disabled. You can use Routing and Remote Access Administrator to enable the service by right-clicking the server, and then clicking Configure and Enable Routing and Remote Access. This article describes how to create a .reg file you can use to enable Routing and Remote Access silently from a Windows 2000 command prompt.
You can use the ConfigureFlags value in the following registry key to enable Routing and Remote Access:

HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\SERVICES\REMOTEACCESS

To enable Routing and Remote Access, you can set the value of the ConfigureFlags value to 1.

back to the top

Enable Routing and Remote Access from a command prompt

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
  1. Paste the following text in a Notepad text (.txt) file:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess]
    "ConfigurationFlags"=dword:00000001

  2. Save the file by naming it EnableRas.reg.
  3. At a command prompt, type regedit /s path\enableras.reg, and then press ENTER.

    Here, path is the path of the folder that contains the EnableRas.reg file.
Additionally, for workgroup computers and stand-alone servers, you can enable Routing and Remote Access in Incoming Connections mode.

To enable Routing and Remote Access in Incoming Connections mode, follow these steps:
  1. Paste the following text in a Notepad text (.txt) file:
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters]
    "IcConfigured"=dword:00000001
  2. Save the file by naming it Incomingcon.reg.
  3. At a command prompt, type regedit /s path \incomingcon.reg, and then press ENTER.

    Here, path is the path of the folder that contains the Incomingcon.reg file.
back to the top

Modification Type:MajorLast Reviewed:9/3/2004
Keywords:kbenv kbhowto kbHOWTOmaster KB311953 kbAudITPro