Windows 11 Error 641: “The System Is in the Process of Shutting Down”
Why This Error Happens
Error 641 typically occurs when an application, script, or remote session attempts to interact with the system (such as initiating a new process, RPC call, or session request) while a shutdown or restart sequence has already been triggered. This is common when a scheduled task, Group Policy shutdown script, or a remote management tool (like PowerShell remoting or shutdown.exe) tries to execute commands during the shutdown window. It can also occur if a pending shutdown command was issued twice, or if a third-party application is holding onto a session that the OS is trying to terminate.
Step-by-Step Resolution Guide
- Cancel any pending shutdown command first.
Open Command Prompt as Administrator and run:
shutdown /a
This aborts the current shutdown process, allowing you to safely re-attempt your action.
-
Check for conflicting scheduled tasks or scripts.
Open Task Scheduler (taskschd.msc) and look under Task Scheduler Library for any tasks configured to run shutdown, restart, or logoff commands. Disable or reschedule any that overlap with your intended actions. -
Verify Group Policy shutdown scripts.
Rungpedit.mscand navigate to:
Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)
Ensure there are no duplicate or conflicting shutdown scripts causing the system to receive multiple termination signals.
- Update or reset network/remote management tools.
If Error 641 appears during a remote shutdown attempt (e.g., via PsExec, WMI, or PowerShell remoting), ensure WinRM is updated and properly configured:
winrm quickconfig
Then retry the remote command.
- Check Event Viewer for the root trigger.
Open Event Viewer → Windows Logs → System, and filter for Event ID 1074 (User-initiated shutdown) around the same timestamp as Error 641. This helps identify which process or user initiated the conflicting shutdown request.
Alternative or Verification Steps
- After running
shutdown /a, immediately retry your original shutdown/restart command to confirm Error 641 no longer appears. - If the issue persists, boot into Safe Mode and check for third-party software (antivirus, remote access tools) that may be intercepting shutdown signals, then update or temporarily disable it.