Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : psexec and echo username

$
0
0
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.



Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>