Information Technology Reference
In-Depth Information
For each objService in colServiceList
errReturn = objService.StopService()
Next
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='remoteaccess'")
For each objService in colServiceList
errReturn = objService.StartService()
Next
WScript.Echo ("RRAS service has been restarted.")
Note Make certain that you check the system event log after you have run this code to verify that the
service has started. Look for events 7035 and 7036.
Note that even though the preceding code sends the command to the local computer, you
can manage RRAS for any remote computer to which you have access and administrative rights
by modifying the value of strComputer . So if the remote computer is named RRAS2 then you
would modify the first line to read:
strComputer = "RRAS2"
How It Works
You may want to stop and start RRAS if you have made changes to the server configuration and
these changes are not visible to clients. Even though most changes ideally should not require
that the service be restarted, the reality is that this is necessary on occasion.
4-3. Registering, Deleting, and Viewing
Remote Access Servers in Active Directory
Problem
You want to publish (register) your RRAS server in Active Directory or remove (unregister)
it from Active Directory, or you want to display status information about the server.
Solution
Using a Graphical User Interface
You can register your RRAS server in Active Directory by doing the following:
1.
Start the Active Directory Users and Computers administrative console from the
Administrative Tools folder in the Start menu, or directly from %systemroot%\
system32\dsa.msc .
2.
Expand the tree in the left pane, and select the Users node.
Search WWH ::




Custom Search