My computer is in domain A and the remote server in domain B, I want to restart the service on the server from my PC using C # or any other language or script.
Notes:
sc, , . , System.ServiceProcess.ServiceController.
sc
System.ServiceProcess.ServiceController
, , , . , - A, , , , .
? - :
NET USE \\computername\IPC$ /U:domainname\username password SC \\computername START service