-2

I can't get Task Scheduler to run my tasks so I setup a simple tasks to see if it there was something wrong with the system. The tasks I created was open a command prompt at a specific time. Tasks Scheduler says it's running, but the cmd prompt doesn't open. Then I tried running it manually and still it doesn't work. I used my administrator account and the system account, but neither worked. Any ideas?

Gman
  • 1
  • 1

1 Answers1

0

I finally got the tasks to run using Powershell, but this still doesn't explain what is causing Tasks Scheduler to not run simple tasks.

Gman
  • 1
  • 1
  • Task Scheduler works. If it didn't, you'd notice a lot of things failing on Windows. You haven't provided any information about the tasks you created though so it's impossible to guess what's wrong. It's quite likely the task works but you don't realize it - any application that interacts with the desktop will appear in the desktop of the user it's configured to run under. Or the command line may simply be wrong - there's no reason to start a command line prompt just to run a batch file. If you used `cmd`, you probably fired off a command prompt that exited immediatelly – Panagiotis Kanavos May 06 '21 at 14:21
  • The reason for this simple task is to test if something is blocking my tasks from actually executing. I also created a tasks to open Notepad. In both cases, Windows says the tasks completed successfully, but neither Notepad or command prompt actually opens. I created the notepad tasks on my local computer and it works with no problem. This tells me that something is blocking me on the server side. I should have mentioned above that I'm trying this on a server in Azure. – Gman May 06 '21 at 14:40
  • The problem is the task itself then. That's definitely **not** a simple task - by default the Task Scheduler does *not* interact with the use's desktop. Otherwise you'd be interrupted all the time by executing tasks. I suspect you'll find at least one orphaned instance of `NotePad.exe` running in Task Manager – Panagiotis Kanavos May 06 '21 at 15:26
  • If you want to test how Task Scheduler works, write a batch file (either CMD or PoweShell) that does something that *doesn't* require desktop interaction, like appending a line to a file – Panagiotis Kanavos May 06 '21 at 15:27
  • Appending text to an existing file worked!. What I don't understand is why I can run the exact Tasks, Open Notepad on my local computer(windows10), but not on a server(windows 2019). This is very confusing. – Gman May 07 '21 at 15:55
  • hi, how did you get it to run? – jojo_Aero_smith_the_dummy Jan 13 '22 at 01:51