Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PsExec: copying my program not into "system32" folder

Tags:

psexec

I can't get PsExec to work. It keeps copying my installer into system32 (where it won't launch). Does anyone know how to copy from the local to the remote computer to a directory that isn't system32? My PsExec command line is

psexec \\000.00.00.000 -f -u DOMAIN\meuser -p testpwd -c ..\Installer\test.exe /S

Any help would be greatly appreciated.

EDIT: It won't launch because I don't have full administrative rights on the computer. It will launch from other directories

like image 833
Steve Avatar asked Sep 13 '26 03:09

Steve


1 Answers

You need to have admin rights on the target as part of psexec starts up a windows service on the target, and you need admin rights to be able to do that.

psexec copies a psexecsvc file to the admin share and then using remote management starts up a service using that file. It opens up named pipes and uses that for further communication. When it's finished it tidies up after itself.

like image 51
Alan Mullett Avatar answered Sep 17 '26 08:09

Alan Mullett



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!