Windows Server 2008 scheduled tasks cannot create files

scheduled-taskwindows-server-2008

We have a series of tasks which, when run interactively over the command line run fine creating temporary files and (importantly) logs and backups.

When we schedule the task with Administrator privileges to run at the highest priority, however, no logs or temporary files are created! All the directories have read/write privileges as administrator.

Has anyone else experienced this??

We are running Windows 2008 Server & the job is configured for 'Windows Vista or Windows Server 2008'.

Any help would be much appreciated!


OK – so we installed Z-Cron and it works perfectly…. Still a really really strange error from Windows 2008 Task Scheduler, but a solution is perhaps not quite so urgent now we have Z-Cron working!

Best Answer

Check C:\Windows\Temp. For me, when the scheduled task runs when not logged in, it was using this location as TEMP instead of C:\Users\USER\AppData\Local\Temp.

For me, this problem only struck while using Windows Server (2012) - didn't occur when using a client version of Windows (e.g., Windows 7).

Note, that when logged in and running the task manually - it would use the users temp location - which was what was throwing me.

Related Topic