ERROR_MACHINE_LOCKED - 1271 (0x4F7)
The machine is locked and cannot be shut down without the force option.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_MACHINE_LOCKED error code indicates that the system is in a state where it cannot be shut down normally. This typically occurs when certain processes or services are preventing the system from shutting down, and the shutdown operation requires administrative privileges to override these restrictions.
Error Details
This error is returned by the Windows operating system when an attempt to shut down the machine fails due to a lock condition. The specific context in which this error might occur includes:
- Processes or services that are not responding to normal shutdown requests.
- Administrative actions that require elevated privileges, such as stopping critical system processes.
Usage Context
This error is most commonly encountered during the shutdown process of Windows. It can also be relevant when dealing with administrative tasks that involve shutting down or restarting the machine.
Developer Interpretation
When encountering ERROR_MACHINE_LOCKED, developers should consider the following:
- Verify if any processes are preventing the system from shutting down. This could include background services, applications, or system components that have not responded to normal shutdown signals.
- Ensure that all necessary administrative actions have been taken to allow for a graceful shutdown. This may involve stopping specific services or processes that might be causing the lock condition.
Related Errors
ERROR_SHUTDOWN_IN_PROGRESS(1248): Indicates that the system is already in the process of shutting down and cannot handle additional requests.ERROR_SERVICE_REQUEST_TIMEOUT(1056): Occurs when a service does not respond to shutdown requests within the expected time frame.
FAQ
Q: What causes the ERROR_MACHINE_LOCKED error?
A: The error is typically caused by processes or services that are preventing the system from shutting down. This can include background applications, system components, or administrative tasks that require elevated privileges.
Q: How can I resolve this issue?
A: To resolve ERROR_MACHINE_LOCKED, you should identify and stop any processes or services that might be causing the lock condition. Administrative actions may be required to override these restrictions.
Summary
The ERROR_MACHINE_LOCKED error indicates a machine lock condition during shutdown, requiring administrative intervention to proceed. Developers should focus on identifying and resolving the underlying causes of this issue to ensure smooth system operation.