I have a question which I'm sure has a simple solution, but it keeps eluding me.
There's a server in the picture that is used by several people.
All of them use the same account to log in.
The only way to differentiate sessions would be by hostname or IP.
So - How to see, on the remote computer, a hostname of the client connected?
For example, I RDP in to the server 2188.8.131.52 from my IP 2184.108.40.206.
Is there a command I could run on the server in that remote session that will output 2220.127.116.11?
I ask because it would be good if that command would output 218.104.22.168 when person connects from that other IP.
So I can put it in startup and whenever someone connects script like this would run:
gethostname >> rdplog.txt
date /t >> rdplog.txt
time /t >> rdplog.txt
So this can basically equal to a very simple login log.
Thanks for reading! :-)