Click here to Skip to main content
15,887,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have hosted a page and that receives the data from clients through Mobile App using json. And the data of respective client will be forwarded to respective clients.
The Clients have public IP address and i have installed the service on client and status is manually.

so when the online Site gets the request and i need to start the service of respective client with public ip address and username and password.

So how could i start the service on remote client computer having Public IP address.

What I have tried:

Net Use \\computername password /User:username

Query whether the service is running or stopped:
SC \\computername Query servicename

Query the service startup type, path, display name, dependicies etc:
SC \\computername QC servicename

Start or stop a service:
SC \\computername Start|Stop servicename

Change the service startup type:
SC \\computername Config servicename start= Auto|Demand|Disabled


I have used these commands.

The Login works but other commands doesnot works and message came as access denied.
Posted
Updated 13-Jun-16 19:37pm
v2

1 solution

well, obviously its an authentication issue ... I would try using PsService[^] because that at least allows you to specify a username and password on the target machine you're controlling
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900