开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜