Is it possible for a Scheduled Task to perform a graphical (interactive) logon or use a script to do the same?

Solution 1:

It sounds like you are looking for something like LogonExpert. I've never used the software, but they claim to have the ability to scheduled automatic logon and logoff events. From the website:

Scheduled automatic logon and scheduled logoff

LogonExpert provides you with powerful scheduling. You can set a simple delay before every logon, or plan a logon (and logoff) for any time in the future.

alt text
(source: logonexpert.com)

Solution 2:

AutoIT may fit your needs

http://www.autoitscript.com/autoit3/

"AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required! "

Just seen your other question and others have already suggested it.

Very Convulated, but may work?

1) Schedule script that changes the automatic logon registry keys, and supplies special username and password

2) Script then reboots the computer (quite time for terminal server? 3am)

3) When computer boots back up autologon should work

4) Special user has a logon script that runs AutoIT, runs your automation stuff, then changes the automatic logon keys back to what they should be an logs off.