PsExec - Execute Process Remotely
PsExec - Execute Process Remotely
PsExec - Execute Process Remotely
html
Syntax
psexec \\computer[,computer[,..] [options] command [arguments]
Options:
computer The computer on which psexec will run command. Default = local system
To run against all computers in the current domain enter "\\*"
@run_file Run command on every computer listed in the text file specified.
arguments Arguments to pass (file paths must be absolute paths on the target system)
If you omit the -c option then the application must be in the system path on the remote system.
-e Load the user account's profile, don't use with the system account (-s)
-i Interactive - Run the program so that it interacts with the desktop on the remote system.
-l Limited - Run process as limited user. Only allow privs assigned to the Users group.
-w directory Set the working directory of the process (relative to the remote computer).
Psexec can also be used to start GUI applications, but in that case the GUI will appear on the remote machine.
Input is passed to the remote system when you press the enter key - typing Ctrl-C will terminate the remote process.
When you specify a username the remote process will execute in that account, and will have access to that account's network
resources.
If you omit username the remote process will run in the same account from which you execute PsExec, but because the remote
process is impersonating it will not have access to network resources on the remote system.
If you do specify an alternative username/password, then PsExec will send the password in clear text. This may be a security risk if
unauthorized network sniffers could intercept traffic between the local and remote system.
PsExec does not require you to be an administrator of the local filesystem this can allow UserA to run commands as UserB - a Runas
1 of 2 2/11/2012 1:19 PM
PsExec - Execute process remotely http://ss64.com/nt/psexec.html
replacement.
Examples:
Launch an interactive command prompt on \\workstation64, the CMD prompt window will appear locally:
Execute IpConfig on the remote system, and display the output locally:
Copy the program test.exe to the remote system and execute it interactively:
Run Internet Explorer on the local machine but with limited-user privileges:
Related:
2 of 2 2/11/2012 1:19 PM