Information Technology Reference
In-Depth Information
Note You can also start and stop the IAS service from within the IAS MMC snap-in.
Using a Command-Line Interface
The following command stops IAS:
> net stop "Internet Authentication Service"
The following command starts IAS:
> net start "Internet Authentication Service"
Using VBScript
The following script will stop IAS on the local computer:
' The following script stops the IAS service on the local computer
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='Internet Authentication Service'")
For Each objService in colServiceList
errReturn = objService.StopService() ' change the method name to
' StartService() to start
' the service instead.
If errReturn Then
WScript.Echo("Service started/stopped successfully!")
Else
WScript.Echo("Error starting/stopping service.")
End If
Next
How It Works
You will occasionally need to manually start and stop IAS. This may be necessary for trouble-
shooting purposes, or to bring down the service for scheduled or emergency maintenance.
Because IAS is a standard Windows service, there are a number of options to start and stop the
service from the graphical user interface or command-line, or through VBScript.
When starting and stopping IAS, you can use either the IAS or Services MMC snap-in to
accomplish this task. However, you should be aware of one caveat when you have both of these
snap-ins open at the same time: If you start or stop the IAS service using the Services MMC
snap-in while the IAS snap-in is open, the IAS snap-in will not reflect the change until you've
manually refreshed its view. Because of this, you should use care in using both of these options
at the same time, so that you do not inadvertently lose any configuration changes to the IAS server.
Search WWH ::




Custom Search