Installing a windows service on remote machine using given username

后端 未结 4 2026
无人及你
无人及你 2020-12-08 05:44

What is the best way to install a windows service written in C# (in the standard way) on a remote machine, where I need to provide the username and password it should run as

4条回答
  •  伪装坚强ぢ
    2020-12-08 06:07

    It might be worth you checking out a utility I wrote which lets you install/uninstall/start/stop windows services on a local or remote machine. If you have a feature you need added let me know (comment/github issues or PM and I'll happily oblige).

    ServiceConfigurator on GitHub

    As @Raj More suggested, it uses WMI invoked from .NET.

提交回复
热议问题