At the end of the day someone clicks Shut down, goes home, and the next morning the computer is on, has restarted overnight or is still sitting on Shutting down. In an office that means wasted power, and a risk of corrupted files in the shared folder if someone pulls the plug. Start by identifying the symptom, because each one has a different cause.
| Symptom | Most likely cause | Go to |
|---|---|---|
| Stuck on “Shutting down” or goes back to the lock screen | An app that won’t close, a pending update or a fast startup failure | Steps 1 to 3 |
| Restarts instead of shutting down | An update in progress or an error (blue screen) during shutdown | Step 4 |
| Shuts down, then turns itself back on | A device or scheduled task waking the PC | Step 5 |
| Screen goes dark but fans and lights stay on | Hybrid shutdown, chipset driver or firmware | Steps 3 and 6 |
In this article
- Step 1: finish any pending updates
- Step 2: check whether an app is holding up shutdown
- Step 3: test without fast startup
- Step 4: the PC restarts when it should shut down
- Step 5: the PC shuts down but turns itself back on
- Step 6: drivers, docks and firmware
- Shutting down the office PCs at the end of the day
- Frequently asked questions
Step 1: finish any pending updates
When an update is waiting, the power menu shows Update and shut down or Update and restart, and Windows may restart a few times before it actually turns off. Don’t interrupt it.
- Open Settings > Windows Update and install anything pending.
- Restart once, wait for it to finish, and only then test shutting down.
- If installation always fails at the same point, write down the code and see Windows Update errors.
To stop restarts in the middle of the workday, set the hours when Windows won’t restart on its own: Settings > Windows Update > Advanced options > Active hours, then under Adjust active hours choose Manually and enter your office hours. Microsoft describes the feature on the page Keep your PC up to date with active hours.
Step 2: check whether an app is holding up shutdown
When you shut down, Windows asks each open app to save and close. If one doesn’t respond, a screen appears listing the apps that are still open, and plenty of people walk away without reading it. The usual suspects are a spreadsheet opened straight from a network folder, accounting or invoicing software, a backup client that’s running and OneDrive in the middle of a sync.
To confirm the problem is software rather than hardware, run a full shutdown from the command line. Before you do, save and close everything that’s open.
shutdown /s /f /t 0
If the computer turns off normally this way, the cause is probably an app or fast startup, because this command performs a full shutdown that bypasses it. Do the test in step 3; if shutting down from the Start menu still fails, try it again from Start, note the name shown in the list of open apps and check whether that program has an update or gets stuck waiting for the network.
Step 3: test without fast startup
Fast startup is on by default. When you shut down, it doesn’t fully end the kernel session: it saves the kernel and drivers to the hibernation file so the next boot is quicker. According to Microsoft’s article on shutdown failures with fast startup, if that step fails Windows may return to the lock screen instead of turning off.
- Press Windows + R, type
powercfg.cpland select Choose what the power buttons do. - Select Change settings that are currently unavailable (you need to be an administrator on the PC).
- Clear Turn on fast startup (recommended) and select Save changes.

- Fast startup doesn’t apply to Restart, only to Shut down. After installing a driver or an update, always use Restart: that’s the option that does a complete cycle.
- Microsoft doesn’t recommend leaving fast startup off as a rule. If the problem goes away, update your drivers (step 6) and then turn the option back on to see whether it returns.
Step 4: the PC restarts when it should shut down
If the computer restarts by itself at the end of shutdown, a stop error (blue screen) may be flashing by too fast to see. Make Windows stop on the error instead of restarting:
- Press Windows + R and run
sysdm.cpl. - On the Advanced tab, under Startup and Recovery, select Settings.
- Clear Automatically restart and select OK.

The next time it happens, the blue screen will stay up with its stop code. Write it down and follow the guide to the blue screen in Windows 11.
Check Event Viewer for what really happened
When the complaint is “the PC restarted in the middle of the night”, the Windows log tells you who did it. Open Event Viewer (search for it from Start), go to Windows Logs > System and filter by the IDs below, which Microsoft describes on its page about event ID 41:
| ID | What it means |
|---|---|
| 1074 | A shutdown or restart requested by a user or a program; the event includes the user account, date and time |
| 6006 | Windows shut down cleanly |
| 6008 | The previous shutdown was unexpected |
| 41 (Kernel-Power) | The PC started again without shutting down properly: power loss, power button held down or a hang |
If a 1074 appears just before the time of the problem, with a service account or another user, someone or some program asked for the restart: it isn’t a hardware fault. If you only see 41 with no error code, the most common causes are a power outage or a failing power supply; in that case it’s worth reading about a UPS, surge protector or voltage regulator for the office PC.
Step 5: the PC shuts down but turns itself back on
The culprit is usually a device allowed to wake the computer (network adapter, mouse, dock) or a scheduled task. Open PowerShell as administrator (right-click Start and choose the admin Terminal) and run the commands documented in the powercfg command-line options:
powercfg /lastwake
powercfg /devicequery wake_armed
powercfg /waketimers

To take wake permission away from a device, copy its name exactly as it appeared in the list and run:
powercfg /devicedisablewake "Device name"
If your office uses Wake on LAN to turn machines on remotely (for example, for remote access at night), don’t remove the network adapter’s permission. Instead, open Device Manager, go to the network adapter’s properties and, on the Power Management tab, keep only Only allow a magic packet to wake the computer checked. Microsoft explains that ordinary network traffic can wake computers by mistake, while a magic packet is addressed to the MAC address of one specific adapter, so it’s very unlikely to be sent accidentally.
Step 6: drivers, docks and firmware
When the screen goes dark but the machine stays powered, or the problem only happens with the laptop on its dock:
- Unplug docks, hubs and USB peripherals and test again. If that fixes it, update the dock’s firmware from the manufacturer’s website.
- Update the chipset and power management drivers from the computer maker’s support page, using the serial number or exact model.
- If it still won’t shut down, update the BIOS/UEFI following the guide on how to update the BIOS; on a laptop, plug in the charger first.
Shutting down the office PCs at the end of the day
Whoever looks after IT can shut down a machine on the network from their own computer, as long as they have administrator rights on it. This command warns the user, waits 5 minutes and records the reason in event 1074:
shutdown /s /m \\RECEPTION-PC /t 300 /c "End-of-day shutdown"
With a timeout greater than zero, /f is implied, so open apps will be closed when the time runs out; that’s why the warning matters. To cancel within that window, run shutdown /a /m \\RECEPTION-PC. For several machines at once, shutdown /i opens the Remote Shutdown dialog.
Frequently asked questions
Can I shut down by holding the power button?
Only when the PC is completely frozen, after waiting a few minutes. It logs event 41 and can corrupt open files and updates in progress.
My laptop shuts down, but the battery drains in my bag.
Check that it’s really shutting down and not going to sleep when you close the lid. Run powercfg /lastwake after taking it out of the bag to see whether something woke it.
After turning off fast startup, the PC takes longer to start. Is that normal?
Yes: every startup is now a full boot. Update your drivers and try turning the option back on.