user1535147
user1535147

Reputation: 1475

How to Connect to a Server and Start/Stop Server Remotely?

I am trying to code a program that can start and stop services on my server remotely.

My main concern is how to make the client and server communicate

Can you guys give me some hint on how start about?

I have read about this: Remotely Check/Start/Stop Services

but that dude just connect to the server without any autentication. I tried his method and I encountered authentication issues.

Thanks in advance.

Upvotes: 1

Views: 94

Answers (1)

Carrvin
Carrvin

Reputation: 54

In command line you can use the following, maybe this is already everything you need:

sc \\machine stop/start <service>

Upvotes: 1

Related Questions