Task scheduler cannot open batch file when set to run whether user is logged on or not
OS: Windows Server 2008 R2 Enterprise I am unable to get the Task Scheduler to run .bat files while I am logged off. I have a a production .bat file I want to use, but for my troubleshooting purposes I am using C:\Users\Administrator\Desktop\test.bat test.bat is very simple. All it contains is: taskkill /im notepad.exe It runs successfully on its own. If I have Notepad open and I double-click test.bat then the cmd window flashes and Notepad dies. The .bat file is not the problem. The task I created in Task Scheduler is "Test taskkill" (without the quotes). I can see its location in Windows