I'm trying to control services in .net. The problem is I want to disable services but the framework doesn't appear to be able to do that.
Here's the code I'm using... does anyone know of another class that will allow me to disable a service?
Dim RemoteService As New ServiceController("mssqlserver")
Dim value As String
RemoteService.MachineName = "Server1"
RemoteService.Start()
Thanks.
Here's the code I'm using... does anyone know of another class that will allow me to disable a service?
Dim RemoteService As New ServiceController("mssqlserver")
Dim value As String
RemoteService.MachineName = "Server1"
RemoteService.Start()
Thanks.