AutoIt Forums: Terminal Services - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Terminal Services Terminal Services Disconnect Process Run

#1 User is offline   modeler2us 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 26
  • Joined: 02-July 04

Posted 02 August 2004 - 06:07 AM

Folks,

Posted and discussed window load completion issues over the past several weeks - what a great bunch of folks.

Now have a new problem I'm hoping someone can help out with.

Using either .au3 or .exe either installed via w2k or just copied and run from a directory, have yet to be able to get the auto-it loop to continue to run after I disconnect Terminal Services...

It looks like it looses focus of the active window, however I've attempted just about every winactive, winwait, winwaitactive, etc., command to regain focus, so something tells me it just hangs until the Terminal Services Client is re-connected with the Terminal Services Server...

Anyone have a clue - would be greatly appreciated.

Thanks!

#2 User is offline   commenti 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 52
  • Joined: 23-June 04
  • Location:Troisdorf, germany

Posted 02 August 2004 - 03:10 PM

Hi,

I did not test this out with Terminal Services, so I don´t have a direct solution for your problem. (If I get a little time, I may try out AU3 with terminal services tommorow...). I even don´t know what you want to do.
Perhaps it is only something like i had last week. I had to run a au3 script last week but I could not do it on my own comp, cause it blooked my comp. So I ran it on another comp with VNC Server. With VNC Server there were no problems, Script was running even if I disconnected. So, if you only want to run your script on another comp and want somtimes see what it is doing and that was the reason you used terminal services, VNC may be an option. If you only have one server and need Terminal Sessions so that you use it to have more "virtually comps", on this sever, not affecting the "root console", then it will be not a solution.

commenti

#3 User is offline   emmanuel 

  • No one ever accused me of being normal.
  • PipPipPipPipPipPip
  • Group: Full Members
  • Posts: 1,128
  • Joined: 16-April 04
  • Location:Kirkland, WA

Posted 02 August 2004 - 07:39 PM

given what I know of terminal services this makes sense, since when you connect with terminal services it creates a indipendent desktop environment for each user that connects... I have some apps that forbid even having TS running on the server they're installed on... My guess is if you ran the script as a service, with the desktop interaction enabled, it'd work...

#4 User is offline   modeler2us 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 26
  • Joined: 02-July 04

Posted 03 August 2004 - 05:52 AM

commenti, on Aug 2 2004, 06:10 AM, said:

Hi,

I did not test this out with Terminal Services, so I don´t have a direct solution for your problem. (If I get a little time, I may try out AU3 with terminal services tommorow...). I even don´t know what you want to do.
Perhaps it is only something like i had last week. I had to run a au3 script last week but I could not do it on my own comp, cause it blooked my comp. So I ran it on another comp with VNC Server. With VNC Server there were no problems, Script was running even if I disconnected. So, if you only want to run your script on another comp and want somtimes see what it is doing and that was the reason you used terminal services, VNC may be an option. If you only have one server and need Terminal Sessions so that you use it to have more "virtually comps", on this sever, not affecting the "root console", then it will be not a solution.

commenti


First - thanks for taking the time to reply, your assumption is correct, I'll look into VNC Server - however I've got 2 "virtually comps" to run on the same server. I'll check into it and feedback.

Again - Thanks!

#5 User is offline   modeler2us 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 26
  • Joined: 02-July 04

Posted 03 August 2004 - 05:57 AM

emmanuel, on Aug 2 2004, 10:39 AM, said:

given what I know of terminal services this makes sense, since when you connect with terminal services it creates a indipendent desktop environment for each user that connects...  I have some apps that forbid even having TS running on the server they're installed on...  My guess is if you ran the script as a service, with the desktop interaction enabled, it'd work...



emmanuel - Thanks for your comments. Had looked into "desktop interaction enabled", but was not sure if I should change autoit in services, the au3 or the exe. In addition,. was not sure how to add any of the three as a service, but because I was running an au3 with autoit installed, I could have enabled "desktop interaction enabled" for it, but wanted to check with the sys admin first :(

Thanks for your input, I'll do some digging, any hints would be greatly appreciated :)

#6 User is offline   Boostiue 

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 22-December 05

Posted 22 December 2005 - 09:27 PM

Hi, I'm having this same issue. Was there any resolution to this issue?

Thanks,

-Greg

#7 User is offline   boyke_sr 

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 15-October 06

Posted 28 November 2006 - 10:57 PM

View Postmodeler2us, on Aug 1 2004, 09:07 PM, said:

Folks,

Posted and discussed window load completion issues over the past several weeks - what a great bunch of folks.

Now have a new problem I'm hoping someone can help out with.

Using either .au3 or .exe either installed via w2k or just copied and run from a directory, have yet to be able to get the auto-it loop to continue to run after I disconnect Terminal Services...

It looks like it looses focus of the active window, however I've attempted just about every winactive, winwait, winwaitactive, etc., command to regain focus, so something tells me it just hangs until the Terminal Services Client is re-connected with the Terminal Services Server...

Anyone have a clue - would be greatly appreciated.

Thanks!





Had the same problems. VNC is one solution though for some reasons we encountered problems with tight security on our network wich made it impossible to use VNC. The solution (quite simple) is to auto logon on to the terminal server so the user session is active and stays active while running the scheduled autoit .exe file and auto log off when finished. All with the same scheduler (events scheduler).

#8 User is offline   Sapient 

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 30-April 10

Posted 30 April 2010 - 10:57 PM

View Postboyke_sr, on 28 November 2006 - 05:57 PM, said:

Had the same problems. VNC is one solution though for some reasons we encountered problems with tight security on our network wich made it impossible to use VNC. The solution (quite simple) is to auto logon on to the terminal server so the user session is active and stays active while running the scheduled autoit .exe file and auto log off when finished. All with the same scheduler (events scheduler).



I am having a similar problem, but I can't use any of the workarounds described thus far.
I am not sure what you used to "auto logon on to the terminal server"
Has anyone tried automating a logon?
Something like the following program:
http://www.softtreetech.com/24x7/archive/51.htm

This post has been edited by Sapient: 30 April 2010 - 10:58 PM


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users