Remote start/stop of Windows service via System.ServiceController - underlying protocol?
The .NET Framework assembly System.S开发者_开发知识库erviceProcess has a ServiceController class which allows for starting/stopping Windows services on remote machines.
Example:
ServiceController sc = new ServiceController("MyService", "server123");
sc.Stop();
Which underlying protocols does ServiceController rely on? Does it talk to another service on the remote machine? If yes, on which TCP port does the service on the remote machine listen?
Thanks!
Not sure, but it might be using TCP/UDP port 445 like the NET start/stop command.
精彩评论