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

PsTools : psexec and echo username

$
0
0
Author: McNetic
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^%%


Viewing all articles
Browse latest Browse all 10386

Trending Articles



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