0

The company would like all employee PCs to be automatically shut down via a Scheduled Task which automatically runs each evening. I have set up a task to run:

C:\Windows\System32\shutdown.exe -s

at e.g. 6 pm in the evening every day.

(These are just thin client PCs used by staff.)

My question is: Would the task still run if Windows Update were smack in the middle of installing important system updates? Or would Windows Update prevent the task from running?

e.g. Task scheduled for 6 p.m. But at 6 p.m. Windows Update is installing with message "Do not turn off your computer". Will the scheduled task be blocked? Or will it run and possibly bork the system?

1 Answer 1

1

The schedule task will run if the system is not restarting at that point.

If updates are not yet at the point of restarting, the system will shut down.

If updates are pending restart, the shut down will install updates and restart.

At that point, the scheduled time has passed and the computer will keep running.

This should not be an issue once in a while.

2
  • Thanks John! For clarification: If the Windows Update installation is at say 50% complete at the scheduled time of the task, the shutdown will be triggered and potentially cause corruption. Have I understood correctly? Sep 14, 2021 at 9:42
  • If the update is in process, shut down will complete the process and not cause any corruption.
    – John
    Sep 14, 2021 at 10:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .