AWS EC2 Windows schedule job fails while offline

  amazon-ec2, scheduled-tasks, windows

I created a Windows instance on AWS EC2 with T2 Micro, where I set up a schedule job that calls a .bat file at 6 every morning.

The .bat job invokes a few other scripts that mainly carry out some Internet-related transactions, including launching browsers, call services and perform I/O operations.

The issue is in most of the time the .bat file is not able to complete its job (Sometimes it does, but pretty rare). Later on, if I connect to the EC2 instance via remote desktop with the same username and manually call that .bat file, everything works fine.

Anyone has ever experienced this kind of problem and what is the resolution?

Thank you.

Source: Windows Questions

LEAVE A COMMENT