Wednesday, February 6, 2008

Run a batch file with Vista Task Scheduler

Go ahead, try it. Set it up correctly, enter your password if need be. It will NEVER run. This is good, since batch files are intrinsic to DOS/Windows; it would be a shame if they worked.
Solution:
If you get the error code 2147943726, it translates to "
unknown user name or bad password". Evidently even if you supply your name/password, or perhaps the Administrator combo, Vista will still launch batch files as SYSTEM. Change user to SYSTEM, check "Run with highest privileges", and woohoo.

***EDIT***
If you have network drives referenced in your batch file, they won't be available unless you also have them mounted under SYSTEM. Probably easiest to reference them with the "\\computer\root\directory" syntax. "Easiest" being relative, here.

No comments: