Hey, I'm trying to retrieve a connecting sessions ip address in terminal services for use in other scripts. I found two threads on this but neither of them have autoit code that works, only vb code (not vbs), and I'm having trouble converting this. This is also my first attempt at using DllCall.. Here is the original vb code CODE4. Clay Keller Aug 11 2004, 8:53 pm show options Newsgroups: microsoft.public.windows.terminal_services From: "Clay Keller" <NO_claySPAM_kel...@hot