in reply to Vista Task Scheduler

How are you scheduling your script? If you're doing via the at command, then you must remember that it will be schedule to run under the system account. You can try scheduling runas /user:domain\user ..., but I never got that to work sucessfully.

The easiest way is to schedule it using the task scheduler (via start->Control Panel->scheduled tasks->right click->new->scheduled task (or the Vista equivalent)) where it allows you to specify the domain\user name and password. That works for me.

Or, see the command schtasks /?

Update: The following command worked for me. Note: You will be prompted for your password. I've wrapped the last option for posting:

schtasks /Create /tn fred /sc once /st 07:55:00 /tr "c:\perl\bin\perl.exe \test\junko.pl

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."