the remote desktop is ruing on Windows7. I do not have admin rights.
using nestat I am able to get a list of all remotely coected IP Addresses
C:>netstat -n | find "3389" | find "ESTABLISHED"
TCP 10.*.4.10:3389 10.*.4.*1:50031 ESTABLISHED
TCP 10.*.4.10:3389 10.*.4.*2:50032 ESTABLISHED
TCP 10.*.4.10:3389 10.*.4.*3:50033 ESTABLISHED
TCP 10.*.4.10:3389 10.*.4.*4:50034 ESTABLISHED
TCP 10.*.4.10:3389 10.*.4.*5:50035 ESTABLISHED
On the PC we have several accounts (e.g. USER1, USER2, USER3, USER4, USER5).
I am writing a program that will require as an input a list of these users mapped to the account they are currently logged into - need to be able to do this from command prompt.
The desired output could look like this:
(the format is really not that important, if I get the info in any way I will handle it somehow)
10.*.4.*1:50031 USER1
10.*.4.*2:50032 USER2
10.*.4.*3:50033 USER3
10.*.4.*4:50034 USER4
10.*.4.*5:50035 USER5
Thank you ;-)
برچسب:
نویسنده: استخدام کار