Cannot start TopShelf remotely using psexec

I am trying to install a windows service on a remote machine. The service is implemented using TopShelf. I execute the following psexec command:

psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" "install"

The error I get is: ERROR. Service announced. Topshelf.HostConfigurationException: service configured incorrectly: [Failure] Command line An unknown command line option was found: ARGUMENT: "install"

It seems that I am not running the TopShelf installer, but I am running exe and passing "install", which is not a valid argument.

Any help is appreciated!

+4
source share
1 answer

I don't think you need quotes around "install":

psexec \\remoteServerName "C:\PathToExe\TopShelfServiceName.exe" install

+3

Source: https://habr.com/ru/post/1530032/


All Articles