jezznar Posted April 26, 2012 Posted April 26, 2012 Hi, I'm not really that new to AUTOIT coding but I don't really have all the grasp in all of its commands. does anybody know how to get Remote Connection Information? I am starting a project regarding Remote Connection Monitoring. Here are what my application would do. 1. Wait for remote connection 2. If remote connection is available, get the "Remote User Info" (Computer Name, IP Address and if possible, UserName of the one doing the Remote Control) 3. Continuously append these information to a certain log or database 4. A "Remote Connection Monitor" will query this log or database to get the "Remote Connection History" and the current user and be able to identify if it is still active or not since #3 condition should be met. any inputs please?
Moderators JLogan3o13 Posted April 26, 2012 Moderators Posted April 26, 2012 Hi, jessnar, welcome to the forum. To begin with your number 1 step - can you better define "remote connection"? Is this going to be solely RDP, or Offer Assistance, or perhaps some 3rd party tool? That will make all the difference in how you monitor the connection. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
jezznar Posted April 27, 2012 Author Posted April 27, 2012 Hi Jlogan3o13, I will only be using sole RDP (mstsc.exe).
Moderators JLogan3o13 Posted April 27, 2012 Moderators Posted April 27, 2012 (edited) In that case, my suggestion (at a high level) would be:Use ProcessExists to check for RDPClip.exe1. Wait for remote connectionCheck open sessions on the machine for username, or use netstat to get information on the active network connections to the box.2. If remote connection is available, get the "Remote User Info" (Computer Name, IP Address and if possible, UserName of theone doing the Remote Control)Write results to a file using FileWriteLine, or delve into the SQLite functions in the help file for using a db.3. Continuously append these information to a certain log or databaseStep 4 will be another script altogether, so I would say start with these. Read through the help file and see what you can come up with. If you encounter any difficulties, feel free to post what you have here and we'll do what we can to help. Edited April 27, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
jezznar Posted April 27, 2012 Author Posted April 27, 2012 (edited) ingenius! but the thing is that, I do not know how to do your suggest about #1. I do not know which commands I'd use. but basicallyi can study how to use the commands if you can suggest some of it Check open sessions on the machine for username, or use netstat to get information on the active network connections to the box.all the other suggestions, I think I can handle them Edited April 27, 2012 by jezznar
Moderators JLogan3o13 Posted April 27, 2012 Moderators Posted April 27, 2012 Try the native windows "net session" command. You should be able to call this, which will show you session information, and then output the data to your file or db. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
jezznar Posted April 27, 2012 Author Posted April 27, 2012 well currently I tried doing that manually. Apparently, I RDP'd to another desktop and tried "net session" using cmd but im getting this: tried net user, net view still not getting my PC's username or Computer Name. mmmmm..
jezznar Posted April 27, 2012 Author Posted April 27, 2012 (edited) "there are no entries in the list" ill probably be using their IP addresses instead. thanks for the input. i'll try to post my code ones I get to start with it Edited April 27, 2012 by jezznar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now