PsExec
Last updated
Last updated
is a command-line tool from Microsoft's suite that allows remote execution of processes on other computers and enables interactive sessions.
In order to use PsExec three requisites must be met:
The user authenticating to the target machine must be part of the local Administrators group.
The ADMIN$ share must be available.
File and Printer Sharing has to be turned on.
To execute commands remotely, PsExec performs the following tasks:
Writes psexesvc.exe
into the C:\Windows
directory.
Creates and spawns a service on the remote host.
Runs the requested program/command as a child process of psexesvc.exe
.
Example command: