How can I programmatically stop/start a windows service on a remote box?

后端 未结 9 1763
清歌不尽
清歌不尽 2020-11-27 05:17

I want to write a console or Click Once WinForms app that will programmatically stop and/or start a windows service on a remote box.

Both boxes are running .NET 3.5

9条回答
  •  日久生厌
    2020-11-27 05:30

    If you don't want to code it yourself, PsService by Microsoft/Sysinternals is a command line tool that does what you want.

提交回复
热议问题