How to: Continue a Windows Service (Visual Basic)
This example uses the ServiceController component to continue the IIS Admin service on the local computer.
Dim theController As System.ServiceProcess.ServiceController theController = New System.ServiceProcess.ServiceController("IISAdmin")
Compiling the Code
The MachineName property of the ServiceController class is the local computer by default. To reference Windows services on another computer, change the MachineName property to the name of that computer.
The following conditions may cause an exception: