So here's the dealio. I would like to create a simple batch file that'll create a log of each user that remotes in to a server. I know I can use
echo %username% > lastuser.log
but we all use the same username to log in to the server. I was wondering if it was possible to replace the "%username%" with some variable that'll return the physical computer that MSTSC is running on's name. I'd also like this to be a running list with the time of log in, but I can probably figure that out.
I believe you're looking for %CLIENTNAME%.