Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to retreive the IP Address of a terminal server connected user?

$
0
0

Hey everyone,
I have been tasked with configuring a script for users logging into a terminal server from thin clients and identifying their location and mapping specific printers specific to their locations. The problem is there are no real easy ways to uniquely identify the thin clients where it is easier to be able to identify users logging onto a server using a Windows workstation.

I was thinking if I could write a VBS script that executes at logon for users and identifies the IP address of the users session I could find a way to perhaps map a set of printers based on the third octet retrieved from the users session IP to the terminal server.

Anyone have any ideas on how to do this? I already came across this:
http://www.activexperts.com/activmonitor/windowsmanagement/scripts/terminalservices/retrieving/

Which has lots of cool useful stuff. But nothing I can find about retrieving the actual connected users IP addresses on the terminal server. You would think this would be useful for logging source addresses etc. If I can determine a device is connected from a particular subnet I could create a case selection scenario where I map a certain set of printers.

Thanks in advance! I'll keep hunting myself as well.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>