Pending Restart That Never Clears in Windows: How to Read Reboot Flags Safely

Last reviewed: November 25, 2026. This guide on a pending restart Windows message was compared with Microsoft documentation where it exists, and none of its steps were run on a real PC.
When Windows or an installer keeps saying that a restart is pending, an update or install may never finish, and Settings may keep offering a restart that does not seem to clear anything. This guide explains the usual reasons a restart flag stays set, shows how to read those flags without changing them, and gives a safe order of fixes. It is general guidance from PC repair guides on this site, with the Microsoft pages named in the Sources section.
Quick answer: what a pending restart Windows flag means
Quick answer
- A pending restart flag is a note that Windows or an installer leaves for itself, saying that some work waits until the next start. On its own it is not a fault.
- A common example is a delayed file operation, such as replacing a file that is in use. Microsoft documents that such a replacement can be recorded in the PendingFileRenameOperations value and handled at the next restart.
- Update and servicing flags, named RebootRequired and RebootPending, are commonly described as working in a similar way. We did not confirm their behaviour on a Microsoft page.
- Start with a real restart from the Start menu, then finish waiting updates, run the installer again, and only then use the file-repair tools, a clean boot or System Restore.
- Do not delete or edit the flag values by hand. Forum advice to do so is not documented by Microsoft and can leave files half updated.
In this guide
- Quick answer
- Why a pending restart message stays on screen
- Before you check anything
- Where is the flag coming from?
- Symptoms, flags and next steps at a glance
- Read the restart flags, look only
- Decision tree: which step fits
- Safe fix order
- What not to do
- When to stop and get help
- Frequently asked questions
- How this guide was checked
- Sources
Why a pending restart message stays on screen
Windows often cannot replace a file that a running program or service is using. Microsoft's Restart Manager documentation gives the general reason that updates ask for a restart: "some of the files that are being updated are currently being used by a running application or service", and a restart frees them. A restart message is therefore often a request to let go of files, not a sign that the PC is broken.
If you are new to the registry layout that some of these flags live in, read the registry basics of hives, keys and values first. The rest of this guide stays with the restart flags and the steps that clear them.
Files in use replaced at the next start
Microsoft's MoveFileEx documentation describes a way to delay a file rename or delete until the next restart. Microsoft's page says that such delayed operations are recorded in the value named PendingFileRenameOperations. That value sits under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager, and it is a multi-string list. For how CurrentControlSet relates to the numbered control sets, see our guide to CurrentControlSet, ControlSet001 and ControlSet002.
Each entry in that list is either a file to delete at restart or a pair of names for a rename at restart. Windows works through the list when the PC starts. A long-standing entry usually means that a restart has not yet processed it, or that the operation is still waiting on a file that is in use.
Update and servicing flags
Update and servicing components can also leave a note that a restart is needed. Forum posts often name two of them: a RebootRequired key under the Windows Update Auto Update branch, and a RebootPending key under Component Based Servicing. These are commonly described as flags of this kind. We did not find a Microsoft page that confirms their exact behaviour, so treat them as general guidance, and read them only.
Installers waiting on a restart
An installer may stop and ask for a restart because it cannot finish replacing files or registering components while the PC is running. Some installers record this in their own log rather than in a Windows-wide flag. If the message comes from the Windows Installer service itself, the cause is different, and our guide on the Windows Installer service that could not be accessed covers that case.
Before you check anything
Safety first
Before any step that changes something, make a backup of your personal files, and save your open work. Restart the PC only when nothing unsaved is open. If the PC uses BitLocker, keep the recovery key somewhere you can reach before you restart or restore anything. Read how to back up the registry before changes before you touch any registry key. A restore point is a useful safety net, but System Restore is a last resort in this guide.
Every check below is look-only. If you open Registry Editor, use it only to read. If a step seems to need an edit, stop and go back to the route below.
Good to know
The message in Settings and the flag in the registry are not the same thing. Settings can keep offering Restart now while an update is waiting, and a flag can remain set after a restart that did not complete the waiting work. That is why the fix order starts with the restart and the waiting updates, not with the registry.
Where is the flag coming from? A route
Follow the route in order. Each stop narrows the cause, and none of the stops changes anything.
- Restart check Did you restart with Start, then Power, then Restart, and not with Shut down? If not, restart that way first.
- Update check Is an update still listed as waiting in Settings, then Windows Update? Finish it before you judge the flag.
- Installer check Did an installer ask for the restart? Run it again once the PC has restarted.
- Flag check Read the three flags with the commands below. Missing flags point away from a queued restart.
- Repair check If the message stays after the restart and update steps, move to the file-repair tools and the clean boot.
Symptoms, flags and next steps at a glance
Use this table to match what you see with a likely source and the next step. Each step is explained in the sections below.
| Symptom | Likely source | Next step |
|---|---|---|
| Restart required after a normal restart | An update or installer is still waiting | Finish updates, then run the installer again |
| The message returns after Shut down | Fast Startup may keep part of the session | Use Restart from the Start menu |
| An installer says a file is in use | A queued file replacement | Restart once, then retry the install |
| Settings keeps offering Restart now | An update or servicing flag | Read the flags, then finish updates |
| The message stays after two proper restarts | Damaged files or a software conflict | Run the file repair tools, then a clean boot |
Read the restart flags, look only
Run the read-only commands
These commands only read. Run them in a normal Command Prompt. The reg query syntax, which is a key name followed by /v and a value name, is documented on Microsoft's reg query page, and that command reads the registry without modifying it. Use our guide to reg query if you want more examples.
- Open Command Prompt. Select Start, type cmd, and open Command Prompt. You should see a window with a prompt that shows a folder path. If this fails: if the program does not open, note that and move to the next route stop.
- Read the Session Manager value. Run the command below.
You should see either the value name with its list of file entries, or the message ERROR: The system was unable to find the specified registry key or value. If this fails: an access denied message means the read was blocked. Do not try to force it, and note the message for your administrator if the PC is managed.reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations - Read the Windows Update flag. Run the command below. It reads a key, so it lists the key if it exists.
You should see the key path and any values beneath it, or the not-found message. If this fails: the same rules as step 2 apply. Stop if the output is unclear.reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" - Read the servicing flag. Run the command below, which checks the Component Based Servicing key.
You should see the key or the not-found message. If this fails: note the error text and continue with the fix order.reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending"
What a not-found message means
In the usual case, the ERROR message that says the system was unable to find the specified registry key or value means that the flag is not set on this PC. It is not a damage report, and it is not a reason to create or delete a key. If all three reads return not found and the message still appears, the cause is more likely a running installer or a software conflict. Read the fix order below.
Decision tree: which step fits
Answer the questions from the top. Each branch points to the next step.
- Does the message still appear after a Restart from the Start menu?
- No: the waiting work finished. Keep the flag check for later.
- Yes: continue to the next question.
- Is an update still listed as waiting in Settings?
- Yes: finish it, restart once, then check again.
- No: continue to the next question.
- Does the Session Manager read show a list of file entries?
- Yes: restart once more, then run the installer again. Do not edit the list.
- No: continue to the next question.
- Does either Windows Update or servicing key exist?
- Yes: finish the waiting updates, then read the Event Viewer. Do not edit the keys.
- No: move to the file repair tools and the clean boot.
Safe fix order
Work through these steps in order and stop as soon as the message clears. Each one uses a standard Windows feature or a read-only check.
Step 1: restart from the Start menu
Select Start, choose Power, then choose Restart. Do not use Shut down for this step. On many Windows 10 and Windows 11 PCs, Fast Startup keeps part of the session when you shut down, which is commonly reported as a reason a shut down does not clear a restart flag. Our guide on turning off Fast Startup on Windows 11 explains that setting. You do not need Shift and Restart for this step, because that path opens advanced startup options and is not required here.
You should see the PC go through a full start, then the sign-in screen. If this fails: if the message returns, wait for any update in progress to finish, then go to step 2.
Step 2: finish pending updates
Open Settings, then Windows Update. Install any update that is listed as waiting, and when Windows asks for a restart, use Restart from the Start menu once. Do not interrupt an install that is already running.
You should see no update listed as waiting and no Restart now prompt. If this fails: if an install stays at the same point for a long time, leave it alone and note the update name. Update failures have their own problems, and this guide does not cover them.
Step 3: run the installer again after the restart
Once the restart is complete, run the installer again from its original source, not from a copy from another site. Let it finish.
You should see the installer complete, or show a clear error you can note. If this fails: write down the exact error and any log file path the installer names. If the message refers to the Windows Installer service, use the guide on that service rather than repeating the install.
Step 4: run DISM, then SFC
If the message stays, the files that a restart depends on may be damaged. Follow our DISM guide on DISM error 0x800f081f and source files first, then our guide on SFC reporting corrupt files it cannot fix. Run them in that order, and use the guides for the exact commands and their limits.
You should see the tool finish with a completion message. If this fails: follow the error guide that matches the message, and do not try a registry edit to replace a damaged file.
Step 5: clean boot
A clean boot starts Windows with only the core services, which helps find a program that keeps the restart pending. Follow our clean boot guide for Windows 11 to find the conflict, and turn each item back on after the test.
You should see the message stop returning in the clean state. If this fails: a software conflict is less likely, so continue to the next step.
Step 6: check Event Viewer for failed rename operations
Open Event Viewer, then Windows Logs, then System. Look for entries from around the time the message appeared that mention Session Manager, the installer or a file name. This is a read-only check. We did not confirm one event ID that covers every case, so match what you see to the message and the time. If an entry names a service that is missing, see service missing error 1060 on Windows. Our guide on event 1530 and a registry file that is still in use covers one related case, and you should read it only if the event matches.
You should see either nothing related, or an entry that names a file. If this fails: an empty list gives you nothing to act on, so note the time and move on to the next step.
Step 7: System Restore, as a last resort
Open Settings, then System, then Recovery, and read the restore points. Use System Restore only to a point made before the problem began, and only after you have a backup of your personal files. Our guide on what System Restore does to the registry explains its limits, and we do not claim it clears a restart flag.
You should see the restore wizard list the affected programs, if it offers that list. If this fails: cancel the restore and keep your notes. Do not run a restore you have not planned.
What not to do
- Do not delete or edit the PendingFileRenameOperations, RebootRequired or RebootPending values by hand. Popular forum advice suggests deleting them. Microsoft does not document that step, and deleting a queued file operation can leave files half updated.
- Do not use a registry cleaner or a tool that claims to fix a pending restart. No Microsoft page we opened supports these tools for this message, and a cleaner can remove entries you need.
- Do not run unknown scripts or download single DLL files to make the message go away.
- Do not turn off Windows Security or updates to test a cause.
- Do not keep restarting in a loop without first finishing the waiting update.
When to stop and get help
Stop if the message names the Windows Installer service, and read the guide on that service instead. If high CPU or disk use appears with the message, the Windows Update helper may be active, and our guide on TiWorker.exe high CPU and disk use covers that process. If a pending restart also comes with a registry problem, the corrupted registry guide explains the broader signs, but it does not make the flag safe to edit. If the event log names registry log space, see error 1019 0x800703fb on Windows.
If the PC is managed by an organization, ask the administrator, who can see policy and update settings. Bring the flag output, the time of the message and the name of the installer. Our article on registry changes that do not save or keep reverting may help if a value also reverts after restarts.
If you have worked through the steps and still need a guided path, the Repair Assistant can help narrow the cause without changing anything on the PC.
Frequently asked questions
The restart flags
Why does the pending restart message stay after I restart?
Usually an update or installer is still waiting, or a queued file operation has not finished. Finish the updates first and try one Restart from the Start menu. If the message returns, read the flag checks above.
Is a pending restart a sign of a virus?
Not by itself. A flag is a note that Windows or an installer writes for its own use. Malware can also write odd values, so if the message appears with programs you do not recognise, read our guide on checking registry entries for malware, which explains a careful look without edits.
Should I delete the PendingFileRenameOperations value?
No. We do not recommend it. Microsoft does not document deleting this value by hand, and removing a queued file operation can leave files half updated.
Does Shut down clear a pending restart?
It can behave differently from Restart on PCs with Fast Startup. Use Restart from the Start menu, then check again. Our guide on turning Fast Startup off explains the setting in more detail.
Checks and fixes
What does the ERROR message about the registry key or value mean?
In the usual case it means that the key or value is not present, so that flag is not set on this PC. It is not an error you need to repair, and it is not a reason to create or delete a key.
Do I need Shift and Restart to clear the message?
No, not for the steps in this guide. A normal Restart from the Start menu is the step we describe, and it is the one to try first.
Will System Restore clear a pending restart?
We did not confirm that it does. Use System Restore only as a last resort, to a point before the problem began, and only after a backup. The guide on what System Restore does to the registry explains its limits.
Is a registry cleaner a safe way to clear the message?
No. No Microsoft page we opened supports a registry cleaner for this message, and cleaners can remove entries that you need.
How this guide was checked
We compared the registry and restart details with the Microsoft pages listed in Sources, and we read the reg query syntax on Microsoft's own page. The steps were not run on a real PC, and no testing was done. We did not confirm the behaviour of the RebootRequired and RebootPending keys on a Microsoft page, so those parts are labelled as commonly described. Microsoft's Fast Startup and Windows Update troubleshooting pages did not open in this check, so the statements about them are general guidance.