Windows – How to run batch file at startup (Windows 10)

batchbootwindows 10

I am trying to run a batch file with these contents:

ECHO OFF
TIMEOUT /T 2 /NOBREAK
DisplaySwitch.exe /internal
TIMEOUT /T 2 /NOBREAK
DisplaySwitch.exe /external

I've tried putting a shortcut to it in the startup folder, putting the bat itself in the startup folder, and running it as a task using task scheduler. I also have UAC completely disabled. It runs fine when I run it myself, but it won't run at startup. How can I get to run when I start the computer?

Best Answer

I was able to solve this issue by running the task at logon instead of startup.

Related Question