Forrest logo
tool overview
On this page you find all important commands for the CLI tool psexec. If the command you are looking for is missing please ask our AI.

psexec

PsExec is a command-line tool developed by Sysinternals, a subsidiary of Microsoft. It allows users to remotely execute processes on other computers within a network. With PsExec, administrators can perform various administrative tasks such as running commands, launching programs, and even initiating a remote system shutdown.

The tool requires administrative privileges on the target machine and is capable of working with both local and remote systems. It utilizes administrative shares and the Server Message Block (SMB) protocol to establish connections and execute commands remotely.

PsExec supports a wide range of commands and parameters, enabling users to specify the username and password for authentication, work with different protocols, and specify the priority of the remote process. It provides options for running processes either in the interactive or non-interactive mode, allowing administrators to remotely troubleshoot and manage systems without physically being present.

The tool has gained popularity among system administrators for its ability to distribute software, configure systems, and troubleshoot issues remotely. It provides a convenient and powerful way to manage multiple systems simultaneously, saving time and effort. PsExec is widely used in enterprise environments and has become an essential tool for remote administration and system management.

List of commands for psexec:

  • psexec:tldr:13fe3 psexec: Execute a program to interact with users.
    $ psexec \\${remote_host} -d -i ${program_name}
    try on your machine
    explain this command
  • psexec:tldr:4cde0 psexec: Execute a command on a remote host (pre-authenticated).
    $ psexec \\${remote_host} -u ${user_name} -p ${password}
    try on your machine
    explain this command
  • psexec:tldr:ad939 psexec: Execute a command using `cmd` in a remote shell.
    $ psexec \\${remote_host} cmd
    try on your machine
    explain this command
  • psexec:tldr:cffeb psexec: Display the IP configuration of the remote host.
    $ psexec \\${remote_host} ipconfig /all
    try on your machine
    explain this command
  • psexec:tldr:e81d5 psexec: Execute a command remotely and output the result to a file.
    $ psexec \\${remote_host} cmd /c ${command} -an ^>${path\to\file-txt}
    try on your machine
    explain this command
tool overview