Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install windows service with PsExec?

Tags:

service

psexec

Is it possible to remotely install a Windows system serive using PsExec? The files are already on the remote system; I am trying to use

psexec \\remote-host-name -u myusername -p mypassword PathToExecutable

where PathToExecutable is the path to some executable which is intended to install the service; somehow the service is not installed due to unclear reasons. Is remote installation via PsExec possible at all?

like image 531
Codor Avatar asked May 27 '26 16:05

Codor


1 Answers

In my case, the issue was fixed by using the command line parameter:

-h         If the target system is Vista or higher, has the process
           run with the account's elevated token, if available.

to run the command with administrator permissions.

like image 93
Codor Avatar answered May 31 '26 17:05

Codor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!