Would you like to learn how to use the PSEXEC command? In this tutorial, we are going to have multiple examples showing how to use the PSEXEC command on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Psexec – Starting a local command prompt.

Download and extract the application named PSEXEC.

Psexec download

In our example, this is the path to the PSEXEC command.

Copy to Clipboard

As an Administrator, start an elevated command line.

Windows - Elevated command prompt

Access the application directory.

Copy to Clipboard

Start a command-line as another user.

Copy to Clipboard

Start a command-line as administrator.

Copy to Clipboard

Start a command-line as NT AUTHORITY SYSTEM.

Copy to Clipboard

In our example, we used the PSEXEC application to start a local command line.

Tutorial Psexec – Starting a remote command prompt.

As an Administrator, start an elevated command line.

Windows - Elevated command prompt

Access the application directory.

Copy to Clipboard

Start a remote command-line as another user.

Copy to Clipboard

Start a remote command-line as administrator.

Copy to Clipboard

Start a remote command-line as NT AUTHORITY SYSTEM.

Copy to Clipboard

In our example, we used the PSEXEC application to start a remote command line.

Tutorial Psexec – Run a local command

As an Administrator, start an elevated command line.

Windows - Elevated command prompt

Access the application directory.

Copy to Clipboard

Run a command as a different user.

Copy to Clipboard

Run a command as administrator.

Copy to Clipboard

Start a command as NT AUTHORITY SYSTEM.

Copy to Clipboard

Run multiple commands using Psexec.

Copy to Clipboard

Run a BATCH script using Psexec.

Copy to Clipboard

In our example, we used the PSEXEC application to run local commands.

Tutorial Psexec – Run a remote command

As an Administrator, start an elevated command line.

Windows - Elevated command prompt

Access the application directory.

Copy to Clipboard

Run a remote command as a different user.

Copy to Clipboard

Run a remote command as administrator.

Copy to Clipboard

Start a remote command as NT AUTHORITY SYSTEM.

Copy to Clipboard

Run multiple remote commands using Psexec.

Copy to Clipboard

Run a remote BATCH script using Psexec.

Copy to Clipboard

Start a remote command on multiple computers.

Copy to Clipboard

The text file must contain hostnames or IP addresses.

Copy to Clipboard

In our example, we used the PSEXEC application to run remote commands.