![]() |
Psexec and PSEXESVC service |
Post Reply
|
| Author | ||
bildos
Newbie
Joined: 28 December 2005 Location: Poland Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Topic: Psexec and PSEXESVC servicePosted: 22 January 2007 at 11:21am |
|
|
Hello,
I'm useing psexec, but after use that tool at remote system this software install PSEXESVC service. How can I prevent remote system against installation of this service ? I just want to use psexec without installation PSEXESVC service. |
||
![]() |
||
Karlchen
Senior Member
Joined: 18 June 2005 Location: Germany Status: Offline Points: 5126 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 January 2007 at 1:12pm |
|
|
Hi, bildos.
You can't. See explanation below. How psexec works: Sample command:
psexec connects to \\target and authenticates as adminuser. If this does not work, psexec will show an error message and exit. Next psexec copies psexesvc.exe to \\target\Admin$ and launches it as a temporary service. If this does not work, psexec will show an error message and exit. psexesvc on \\target launches some_executable. psexec and psexesvc use pipes to handle keyboard input and screen output. Once some_executable finishes, psexesvc will terminate, too, and remove itself from the services list. psexec will exit. (If you use psexec's -d option things work slightly differently, but the result will be the same.) Summary There is no way of using psexec to execute a command remotely without having the temporary service psexesvc. But psexesvc will disappear when no longer needed. Karl |
||
![]() |
||
bildos
Newbie
Joined: 28 December 2005 Location: Poland Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 January 2007 at 12:00pm |
|
|
So after disconected psexesvc should be autmatiocal remocved from remote host ?
|
||
![]() |
||
Karlchen
Senior Member
Joined: 18 June 2005 Location: Germany Status: Offline Points: 5126 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 January 2007 at 2:52pm |
|
|
Correct.
In the rare case that this should not happen, then
Karl Edited by Karlchen - 23 January 2007 at 3:01pm |
||
![]() |
||
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |