In PsExec, which option causes the command to be copied to the remote system before execution?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

In PsExec, which option causes the command to be copied to the remote system before execution?

Explanation:
PsExec runs commands on a remote system, and you can control whether the executable is present on the remote machine or copied from your local machine first. The option that triggers copying is the one that explicitly copies the program to the remote system before it runs. This is useful when the exact executable you want to run isn’t already on the remote host or when you want to ensure a specific version is used. When you use this option, PsExec transfers the local program to the remote machine and then executes it there. The other flags control things like not waiting for the process to finish, running under the System account, or providing user credentials, but they do not cause copying of the executable. So the copy-before-execution behavior is activated by the -c option.

PsExec runs commands on a remote system, and you can control whether the executable is present on the remote machine or copied from your local machine first. The option that triggers copying is the one that explicitly copies the program to the remote system before it runs. This is useful when the exact executable you want to run isn’t already on the remote host or when you want to ensure a specific version is used. When you use this option, PsExec transfers the local program to the remote machine and then executes it there. The other flags control things like not waiting for the process to finish, running under the System account, or providing user credentials, but they do not cause copying of the executable. So the copy-before-execution behavior is activated by the -c option.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy