title: Task Scheduler on Windows 10 not working anymore
body: <p>I have made a Python Script which scrapes some data out of a website, using the Mozzila driver. At the end of the script, it saves the data into an Excel and then closes the browser with browser.quit(). After fixing all the bugs and issues I could find, using pyinstaller I have crated an executable. The final task was to run this executable everyhour, everyday... so I used Task Scheduler.</p>
  
  <p>These are the settings of the task:</p>
  
  <p><a href="https://i.stack.imgur.com/PYYK3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PYYK3.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/L3u4e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L3u4e.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qhsMp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qhsMp.png" alt="enter image description here"></a></p>
  
  <p>For aprox. 3 months, while using Windows 7, the script run non-stop with NO issues. It didn't matter if the user was logged in or not, if the computer was sleeping, or if the screen was turned off. Three days ago, my company forced me to install Windows 10, and since then, the script doesn't run anymore. I will try to explaing its behavior:</p>
  
  <p>Using the same settings for the task in Task Scheduler, at hour X it starts and it finishes and all the cmd script/Firefox/geckodriver process` are closed. It runs for the next 3-4 hours, but the next hour it crashes. The cmd script/firefox/geckodriver process' do not close (the data is not saved) and it remains stuck! I have to manually end the tasks, so it can run the following hour. Manually starting the script from Task Scheduler works too (but ofc, if the past process' of the script are closed)</p>
  
  <p>I tried selecting stop the task if it runs for more than 5 minutes (the script finishes its work in less than 2 minutes), it doesn't work. I've tried creating a .bat file that opens the .exe, and assign it to the task instead of the .exe. Same result...</p>
  
  <p>Since the update to Windows10, I can not make it work for 1 day straight. I do not know what to do anymore... This script is supposed to run everyday, everyhour (like it did when I was using Windows 7)... but I cannot wake up in the middle of the night to check it, manually close the process' and so on.</p>
  
  <p>Do you have any ideas?</p>