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 218.104.22.168 from my IP 222.214.171.124.
Is there a command I could run on the server in that remote session that will output 2126.96.36.199?
I ask because it would be good if that command would output 2188.8.131.52 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! :-)