Author: McNetic
Subject: psexec and echo username
Posted: 17 July 2013 at 9:32am
Subject: psexec and echo username
Posted: 17 July 2013 at 9:32am
It works like this:
psexec \\remotemachine cmd /c echo ^%username^%
If adding the command in a batch script, you'll have to double the percent signs like this:
psexec \\remotemachine cmd /c echo ^%%username^%%