Postpone execution of VBS or batch scripts during Windows startup by 60 seconds
Postpone execution of VBS or batch scripts during Windows startup by 60 seconds
The script you provided runs at startup, executing commands immediately. To delay it by 60 seconds, you could wrap the taskkill commands in a VBTimeValue timeout or use a delayed start for the batch file itself. Adjusting the batch parameters to wait before running the commands would also work.
Adjusting the task to run through Task Scheduler lets you control it based on user login. This approach ensures that when a user logs in, any startup processes are ready. You can also link the task to specific triggers, like known start-up order or events after initialization. Edit: It’s clear now there’s no method to postpone script execution at startup. In earlier Windows versions, simple timeouts could delay scripts, but modern systems ignore such delays. Edited April 18, 2018 by Tabs More info