Information Technology Reference
In-Depth Information
' ------ END CONFIGURATION ---------
set objShell = CreateObject("WScript.Shell")
set objExec = objShell.Exec(strCommand)
' Run in a loop while the command is executing
Do While objExec.Status = 0
WScript.Sleep 1000
Loop
' Delete the objects from memory once the command is completed.
Set objExec = Nothing
Set objShell = Nothing
Because this syntax is the same regardless of the netsh ras command or parameters, we
will not discuss this method in each recipe. Instead, you should refer to the sections of recipes
that describe using a command line and then place the appropriate command into the
preceding script.
4-1. Enabling or Disabling Windows Server 2003
As a Remote Access Server
Problem
You want to enable your server to provide remote access services.
Solution
Routing and remote access services are installed by default in Windows Server 2003. They are
not like other networking components such as WINS or DNS that can be added or removed.
Rather, RRAS just needs to be enabled and configured.
Using a Graphical User Interface
1.
Start the Routing and Remote Access Services administrative console from the
Administrative Tools folder in the Start menu, or directly from %systemroot%\
system32\rrasmgmt.msc .
2.
If your server is not already listed in the console, then add it by right-clicking Routing
and Remote Access in the left pane and selecting Add Server. Select the first option,
This Computer.
Note If you are enabling Routing and Remote Access on a remote server, you can add those servers to
this console by selecting The Following Computer, All Routing and Remote Access Servers, or Browse Active
Directory rather than the This Computer option.
Search WWH ::




Custom Search