Author: MCHP-Darwin
Subject: psexec and echo username
Posted: 22 May 2013 at 2:38am
Hi Everyone,
I'd like to get the current user logged in using psexec, this is the command i used
psexec \\remotemachine cmd /c echo %username%
This is the result, the username displayed was actually the username I have locally, not from the remotemachine and it comes with an error. Any suggestion is highly appreciated. Thanks.
username1
cmd exited on t03j750 with error code 0.
Subject: psexec and echo username
Posted: 22 May 2013 at 2:38am
Hi Everyone,
I'd like to get the current user logged in using psexec, this is the command i used
psexec \\remotemachine cmd /c echo %username%
This is the result, the username displayed was actually the username I have locally, not from the remotemachine and it comes with an error. Any suggestion is highly appreciated. Thanks.
username1
cmd exited on t03j750 with error code 0.