I have some backup batch file scripts which I was running in xp and I have migrated to windoes server 2008 R2 where it's not running in front when scheduled with task manager. I struggled a lot to make it run at the scheduled time with task manager and it's running but not showing the process(running in the background). I also know the option to display all the running tasks. I searched in the google and I didn't find it so far. Does anyone know how to make task manager execute .bat file on the desktop(opening cmd prompt) in windows server 2008 R2?. I scheduled it to run as same desktop user!.
Thank you!
Best Answer
Tasks can only launch interactively when you use the Run only when user is logged on option. Here's an excerpt from the Task Scheduler help file:
I experimented a bit with
psexec -i
but no luck, sorry.You can find a list of running scheduled tasks with
schtasks.exe
, eg:If you want to get a bit fancy, you could pull out the command line for each running task as well. Here's a batch file example: