About Windows Services

  • Thread starter Thread starter Taskheer
  • Start date Start date
T

Taskheer

Dear All,


I want to start the service of another system through my system.
How i'll do this through VB.Net.
Please help me.
I'm able to start and stop the service of my system through VB.net services
control.
 
Taskheer said:
I want to start the service of another system through my system.

The sc utility command can be used to do this ...

sc \\HostName start ServiceName

.... /so long as/ you have Administrative access to the target machine.
How i'll do this through VB.Net.

The ServiceController class supports this:

Dim oSvcCtl as New ServiceController( "ServiceName", "HostName" )

HTH,
Phill W.
 
Back
Top