Has anyone figured a way to be able to run windows schedule task with out having to be logged into the comuter/active RDP session? I like to be able to schedule my scripts run daily, but it seems I have to be logged into the remote comptuer in order for the Windows Schedule to run my .bat file or it will recognize the application windows/lose focus and fail.
Re: Windows Schedule Task without having active RDP
First thing is you need to verify the user that is used to run the task have the given right to run as an interactive service as well as be allowed to launch batch files.
Second, I'm not positive you will have much luck with not having anyone logged in since Robot interacts with the GUI. If there is no GUI (because no one is logged in) you will probably not be able to have your scripts operate properly.
My solution to this was to use virtualization (VMware or MS Virtual Server). What I did was the following:
*) From my desktop machine use PSEXEC to connect to the virtualization host machine to reset and restart a virtual PC.
*) Enable the virtual PC to auto logon.
*) When the virtual PC is up an running, connect to the virtual PC with PSEXEC to launch the automation code from my desktop PC.
This requires Robot to be installed in the baseline image on the virtual machine that will be doing the testing.