Démarrer un service
Dim controller3 As New ServiceController("Telephony")
controller3.Start()
Stoper un service
Dim controller As New ServiceController("Telephony")
controller.Stop()
Mettre un service en pause
Dim controller2 As New ServiceController("Telephony")
controller2.Pause()
Faire continuer un service si celui-ci est en pause
Dim controller1 As ServiceController
controller1 = New ServiceController("IISAdmin")
' Checks that the service is paused.
If controller1.Status = ServiceControllerStatus.Paused Then
' Continues the service.
controller1.Continue()
End If