Of course, you could write a service to this rather than using Scheduler (AT). You can do this is Perl if you use
Win32::Daemon. This also gets around the user permissions problem above. Its quite straightforward to do this and the module comes with a couple of template examples. Running as a services also has the advantage that it can be set to start automatically on bootup (and restart if failed in Win2K).
OTOH, you can script the AT command with
Win32::AdminMisc. Use Win32::AdminMisc::ScheduleAdd(). The script that is run by AT, can then use Win32::AdminMisc::LogonAsUser() to impersonate another user.
</code>
$ perldoc perldoc