psexec Command Examples

Execute a command-line process on a remote machine. This is an advanced command and it might potentially be dangerous. More information: https://learn.microsoft.com/sysinternals/downloads/psexec.

psexec \\{{remote_host}} cmd

psexec \\{{remote_host}} -u {{user_name}} -p {{password}}

psexec \\{{remote_host}} cmd /c {{command}} -an ^>{{path\to\file.txt}}

psexec \\{{remote_host}} -d -i {{program_name}}

psexec \\{{remote_host}} ipconfig /all