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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top