Skip to content
TECHNOARTH IT for offices and small businesses.
Windows

Windows 11 won’t shut down or restarts instead: how to fix

Stuck on "Shutting down", restarting when you shut down, or switched on again by morning? Find the cause in Windows 11 (updates, an open app, fast startup, a device waking the PC) and shut office PCs down without losing files.

Windows 11 won’t shut down or restarts instead: how to fix

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.

SymptomMost likely causeGo to
Stuck on “Shutting down” or goes back to the lock screenAn app that won’t close, a pending update or a fast startup failureSteps 1 to 3
Restarts instead of shutting downAn update in progress or an error (blue screen) during shutdownStep 4
Shuts down, then turns itself back onA device or scheduled task waking the PCStep 5
Screen goes dark but fans and lights stay onHybrid shutdown, chipset driver or firmwareSteps 3 and 6
In this article
  1. Step 1: finish any pending updates
  2. Step 2: check whether an app is holding up shutdown
  3. Step 3: test without fast startup
  4. Step 4: the PC restarts when it should shut down
    1. Check Event Viewer for what really happened
  5. Step 5: the PC shuts down but turns itself back on
  6. Step 6: drivers, docks and firmware
  7. Shutting down the office PCs at the end of the day
  8. 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.

  1. Open Settings > Windows Update and install anything pending.
  2. Restart once, wait for it to finish, and only then test shutting down.
  3. 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.

Command
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.

  1. Press Windows + R, type powercfg.cpl and select Choose what the power buttons do.
  2. Select Change settings that are currently unavailable (you need to be an administrator on the PC).
  3. Clear Turn on fast startup (recommended) and select Save changes.
Shutdown settings with Turn on fast startup unchecked and the Save changes button highlighted
To test, uncheck fast startup (1) and save (2). If it’s grayed out, first click “Change settings that are currently unavailable”.
  • 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:

  1. Press Windows + R and run sysdm.cpl.
  2. On the Advanced tab, under Startup and Recovery, select Settings.
  3. Clear Automatically restart and select OK.
Startup and Recovery window with Automatically restart unchecked and the OK button highlighted
Clear Automatically restart (1) and confirm (2): if an error happens during shutdown, the blue screen stays up with the code instead of the PC restarting.

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:

IDWhat it means
1074A shutdown or restart requested by a user or a program; the event includes the user account, date and time
6006Windows shut down cleanly
6008The 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:

Command
powercfg /lastwake
powercfg /devicequery wake_armed
powercfg /waketimers
PowerShell as administrator with the commands powercfg /lastwake, powercfg /devicequery wake_armed and powercfg /waketimers highlighted
What woke the PC last time (1), which devices are allowed to wake it (2) and which tasks have scheduled a wake-up (3).

To take wake permission away from a device, copy its name exactly as it appeared in the list and run:

Command
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:

Command
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.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.

Reviewed by Arth Moraes — Arth Moraes is the editorial pen name of the person responsible for TECHNOARTH, who sets the agenda, reviews and approves every tutorial before publication and is accountable for corrections.