Sign in to follow this  
Followers 0
IndyUK

A quick question about Terminal Services

9 posts in this topic

Hi All,

I did a quick search but couldn't find the exact answer I was looking for. The question is; If I install Autoit on a physical server running Server 2003 with 5 terminal service licences, would a script run if the physical PC was locked. I'm working on a Java application which as you all know cannot be driven by control names, so instead I have to use MouseMoves, WinActivate, Send to replicate user interaction. These commands require an unlocked session. So if I open an RDP session would the screen and keyboard be available for manipulation, even though the physical PC is locked?

I apologise in advance if this type of question has been answered before but, I looked through lots of post and couldn't find the answer.

Thanks

Share this post


Link to post
Share on other sites



Hi All,

I did a quick search but couldn't find the exact answer I was looking for. The question is; If I install Autoit on a physical server running Server 2003 with 5 terminal service licences, would a script run if the physical PC was locked. I'm working on a Java application which as you all know cannot be driven by control names, so instead I have to use MouseMoves, WinActivate, Send to replicate user interaction. These commands require an unlocked session. So if I open an RDP session would the screen and keyboard be available for manipulation, even though the physical PC is locked?

I apologise in advance if this type of question has been answered before but, I looked through lots of post and couldn't find the answer.

Thanks

unless you want to graph the exact XY coordinats it wont work using rdp(as far as I know)

[size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

unless you want to graph the exact XY coordinats it wont work using rdp(as far as I know)

Well I'm going to navigate using screen co-ordinates as it's a Java app. So there will be lots of MouseMoves and MouseClicks and Send commands being used. My main reason for asking was to make sure that if the physical PC is locked will the terminal session run ok. This is very important otherwise I'll have to abandon AutoIt...and believe me, I don't want to.

Edited by IndyUK

Share this post


Link to post
Share on other sites

Question?

Where is the app running in your RDP session or on the console?

Or are you connecting your RDP session to the console?

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Question?

Where is the app running in your RDP session or on the console?

Or are you connecting your RDP session to the console?

Kenny

It really depends on which method works. The stipulation is that I could potentially open 5 sessions at the same time to drive 5 different apps (on the same server)

How would you recommend I do it?

Share this post


Link to post
Share on other sites

If there is a long delay between mousemoves, you could issue some random mouse movement, that would stop the session from locking.

Or were you intending to start everything and disconnect your session?


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Or were you intending to start everything and disconnect your session?

Pretty much the above. A request would be sent to the TS and the necessary session would be opened, autoit script will run, do it's work and close session.

Thats' about it.

Share this post


Link to post
Share on other sites

ok but from what you said the session will remain open while your interacting with the application so you shouldn't have a problem. I have a program I use in TS that works via x,y coords.

Otherwise you'll have to run it on the console.

It would have to be unlocked but you could block all mouse and keyboard unput, except some hotkey of your choosing.

The hotkey would cause the script to end and return mouse and keyboard control.

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

ok but from what you said the session will remain open while your interacting with the application so you shouldn't have a problem.

So does this mean that even though the console is locked i.e on the monitor it says "workstation locked", the open TS session which has been called is running the Autoit script?

I have a program I use in TS that works via x,y coords.

Would you be so kind as to share how you setup the whole TS arrangment? This will really help me visualise how to setup the whole thing. I'm assuming that you have a Terminal Server and a standard XP machine that requests the session from that Terminal Server? Edited by IndyUK

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0