Forrest logo
back to the psexec tool


psexec: Display the IP configuration of the remote host.
$ psexec \\${remote_host} ipconfig /all
try on your machine

The command psexec \\${remote_host} ipconfig /all is used to execute the "ipconfig /all" command on a remote host using the PsExec tool.

Here's a breakdown of the command components:

  • psexec: It refers to the PsExec tool, which allows for executing processes on remote systems.

  • \\${remote_host}: This is the parameter indicating the hostname or IP address of the remote host where the command will be executed. The double backslash "\" is used to specify that this is a remote system.

  • ipconfig /all: This is the command that will be executed on the remote system. "ipconfig" is a command-line utility in Windows used for displaying the IP configuration of a network interface. The "/all" option includes detailed information about all network interfaces (including physical and virtual adapters) and their configurations.

When the command is run, it connects to the specified remote host using PsExec and runs the "ipconfig /all" command on that system. The output will then be displayed on the local machine, providing information about the network configuration of the remote host.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the psexec tool