How to Fix Error 1018 (0x800703FA): Illegal Operation Attempted on a Registry Key

Flat navy illustration of a blue folder-tree key icon with a dotted ghost outline, a red tag badge and a faint trash bin

Last reviewed: November 25, 2026. This guide on error 0x800703FA was compared with Microsoft documentation, and none of its steps were run on a real PC.

This guide explains error 0x800703FA in plain terms. Windows shows it when a program tries to use a registry key that has already been marked for deletion. The same failure is reported as Win32 error 1018, named ERROR_KEY_DELETED, so this page covers both forms. The steps below are a look-only diagnosis, ordered from the cheapest check to the most involved, and none of them asks you to delete, rename or recreate a registry key. For more help with Windows, browse the PC repair guides on this site.

Quick answer: error 0x800703FA

Quick answer

  • Error 0x800703FA is the HRESULT form of Win32 error 1018, ERROR_KEY_DELETED: an operation was attempted on a registry key that is marked for deletion.
  • Microsoft's RegDeleteKey page says a deleted key is not removed until the last handle to it is closed, so the failure is commonly reported when a program still holds a stale reference to the key.
  • Restart with Restart, not Shut down, then read Event Viewer and note which app shows the message.
  • If it returns, try a clean boot, update or repair the app, then run DISM and then System File Checker.
  • Do not delete or recreate keys by hand, and do not use a registry cleaner for this message.

In this guide

What the message means

Win32 error codes are numbers that Windows returns when a function fails. Microsoft's system error code list for the 1000 to 1299 range gives error 1018, shown as 1018 (0x3FA), with the name ERROR_KEY_DELETED. The message text on that page is: Illegal operation attempted on a registry key that has been marked for deletion.

How the 0x800703FA form relates to 1018

The number 0x800703FA is the same failure written as a Windows HRESULT. The Win32 code sits in the low 16 bits of the HRESULT, and the value 0x80070000 is added to it. In that layout 0x80070000 plus 0x3FA gives 0x800703FA. We opened the Microsoft page that lists 1018 and did not find 0x800703FA on it, so this explanation is our own reading of the layout, not a statement from Microsoft. The practical point is the same either way: search for 1018 or 0x800703FA and you are looking at one error.

What marked for deletion means

Microsoft's RegDeleteKey page, in its Remarks section, says that a deleted key is not removed until the last handle to it is closed. A handle is an open reference that a program holds on a key. A program can open a key, another part of the system can delete it, and the key then stays in place, marked for deletion, for as long as any handle is still open. For background on how keys and values are organised, see our guide to Windows registry hives and keys.

While the key is in that state, a call that goes through a handle still open to it can fail with this error. The key is removed when the last handle closes. That is why the error can look random: the key may already be gone from the view you expect, while one program keeps a stale reference to it. Changes to a hive are also tracked in the transaction log files beside the hive file, and our guide to registry transaction logs explains those files in plain terms.

Why a restart is the first check

A restart closes the handles that programs held before it. If the stale reference was the cause, the error usually stops after a restart. If it returns straight away after you sign in, a program or a startup item is probably opening the key again, and the steps below help you find which one.

Where people meet this error

These places are commonly reported by people who see the message. We did not confirm each one with a Microsoft page, so treat them as patterns to check rather than facts about your PC:

  • Application installers and uninstallers that remove and recreate their own keys.
  • Sign-in and user profile steps, where a profile is loaded or unloaded.
  • Windows Update or Microsoft Store updates.
  • Printer drivers and printer software.
  • Outlook and other mail or Office components.

The shared pattern is one process deleting or unloading a key while another process still has it open. Finding that second process is the goal of the diagnosis below.

Before you start

Back up first

Back up the registry before any step that changes something, and keep your personal files backed up. Read our guide to backing up the registry before any change first. Create a restore point before you run any repair tool. If this PC uses BitLocker, keep the recovery key somewhere safe before you restart or run repairs. If the PC is managed by your organization, ask the administrator before you run repairs, because a policy can write settings back.

Good to know

The number 1018 and the code 0x800703FA describe the same error. Use either one when you search a log or an article, and write down the one shown on your screen.

A look-only diagnosis, in order

Work through these steps in order. Most of them only read information. Steps 7 and 9 change system files or restore state, so they come with their own warnings. Stop as soon as the error is gone, and write down anything you changed.

Step 1: Note the exact message and time

Write down the full message text, the number shown (1018 or 0x800703FA), the app or window that displayed it, and the time. Note whether it happened during sign-in, an installation, an update or a normal action in an app.

You should see: a short note you can match against the event entries in step 3.

If this fails: if no message appears but the app simply stops working, write down the app name and the action you took just before.

Step 2: Restart with Restart, not Shut down

Open the Start menu, select the power button, then select Restart. Shut down with Fast Startup enabled can keep part of the previous session, so a full restart is the better test. Our article on turning off Fast Startup explains that setting if you want to change it later.

You should see: the app starts normally, and the error does not return during your next ordinary use.

If this fails: the error came back after a true restart. Keep your note from step 1 and continue with step 3.

Step 3: Read Event Viewer

Press the Windows key and R together, type the command below, and press Enter. Open Windows Logs, then Application, then System. Look at entries close to the time you wrote down. Only read the entries. Do not clear any log.

eventvwr.msc

You should see: entries near the time of the error that name an app, a service or an installer. A named app is a strong clue.

If this fails: if nothing matches the time, the event may have been logged in another place, or the message was not logged. Continue with the next step.

Step 4: Identify the app that shows the message

Match the app named in the message, or the app you were using, to the software on your PC. Installers and uninstallers are the most common source in our reading of the reports. To see what an installer changed on the registry, read our guide to comparing registry changes before and after install. Write down the app version and whether an update was installed shortly before the error began. Our article on checking startup entries with Autoruns shows how to read startup items without changing them. To read a registry key from a Command Prompt without changing it, see our guide to the reg query command.

You should see: one app or installer name that you can work with.

If this fails: if the message does not name an app, move on to the clean boot step and compare the time of the error with what you did just before it.

Step 5: Use a clean boot to find a conflict

A clean boot starts Windows with fewer third-party services and startup programs, so you can test whether one of them is the cause. Our article on a clean boot to find a software conflict in Windows 11 explains the steps. We could not open the Microsoft clean boot page during this review, so follow our article and check Microsoft's own guidance if you can open it. Return the PC to normal startup afterwards, and turn back on any service you turned off.

You should see: the error does not appear in the clean boot session while you use the app in the same way.

If this fails: the cause is probably not a third-party service or startup item. Return to normal startup and continue with step 6.

Step 6: Update or repair the app

Update the app from its own updater or from Settings, then restart. If the app offers a Repair option in its installed-apps entry, use that before any reinstall. Menu names can differ between builds, so look for a similar item if the wording is different on your screen. Do not remove registry keys to make an install or repair succeed.

You should see: the update or repair finishes, and the message does not come back during normal use.

If this fails: contact the app vendor with your note from step 1, the event entries from step 3 and the app version.

Step 7: Run DISM, then System File Checker

Open Command Prompt as administrator, which means Run as administrator. Create a restore point first, because these tools replace damaged system files. Microsoft's guidance on the System File Checker says to run DISM before SFC, because DISM provides the files that SFC uses for its repairs. Run the first command, wait for it to finish, then run the second. Each command can take several minutes, so do not close the window early.

DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

You should see: DISM reports that the operation completed, then SFC reports either that it found no integrity violations or that it repaired files.

If this fails: if SFC reports corrupt files it could not fix, read our article on SFC finding corrupt files it cannot fix. If DISM cannot find its source files, read our article on DISM error 0x800f081f. Do not replace system files by hand.

Step 8: Scan for malware with Windows Security

Open Windows Security, select Virus and threat protection, and run a quick scan. Follow its prompts if anything is found. If the quick scan is clean and the error still returns, run a full scan. Malware is commonly reported to hold keys open or rewrite them, so this check is worth doing. Our article on malware-related registry entries covers safe checks. Menu names can vary by build.

You should see: a scan result. Any removal is done by Windows Security itself.

If this fails: a scan that cannot start or keeps failing is a reason to stop and seek help, as described below.

Step 9: Use System Restore as a last undo

Use System Restore only if you created a restore point before the error began. It is an undo, not a repair. General guidance is that System Restore may not revert every registry change, so read our article on what System Restore does to the registry before you rely on it. Back up your personal files first.

You should see: the restore runs, and the PC restarts to the earlier state.

If this fails: if the restore does not complete, stop. Do not run repeated restores, and seek help.

Step 10: Stop and contact the vendor or an administrator

Stop when the error returns after steps 1 to 8, when the message names a damaged database, or when the app is managed by your organization. Bring the note from step 1, the event entries, the app version and the restore point details, if you made one.

You should see: a clear handover to the people who can change the app or the PC policy.

Symptoms and checks at a glance

Use this table to match what you see with the first check to make. Each row points to a step above.

SymptomFirst checkNext step
Error appears during an app install or uninstallNote the app and version (step 4)Update or repair the app (step 6)
Error appears after sign-inRestart with Restart (step 2)Clean boot (step 5)
Error appears during a Windows or Store updateRead Event Viewer (step 3)DISM then SFC (step 7)
Error returns after every restartClean boot (step 5)Malware scan (step 8)
Error follows a recent restore or resetNote the restore point date (step 9)Contact the vendor (step 10)

Decision tree

Answer the questions from the top. Each branch points to the step to take next.

  • Does the error stop after a true restart?
    • Yes: keep the restart habit, watch for a return, and write down what you did before it appeared.
    • No: go to the next question.
  • Does Event Viewer name an app or service near the time?
    • Yes: update or repair that app (step 6), then check again.
    • No: go to the next question.
  • Does a clean boot stop the error?
    • Yes: a third-party service or startup item is the likely cause. Contact its vendor.
    • No: run DISM and then SFC (step 7), and run a malware scan (step 8).
  • Does the error still return after steps 7 and 8?
    • Yes: stop and seek help (step 10).

Where this guide stops

Some related problems look similar but need a different approach. The registry log space message, error 1019, has its own guide: error 1019 and registry log space. Use these guides for the other related problems, rather than repeating the steps here:

What not to do

  • Do not delete a key that is marked for deletion, and do not recreate it by hand. Either step can break the program that uses the key, and this guide does not teach either one.
  • Do not use a registry cleaner for this message. No Microsoft page we opened documents a speed or repair benefit of registry cleaning, and cleaners can remove keys that a program still needs. Our registry cleaner guide explains the risks in more detail.
  • Do not remove leftover entries from an uninstall as a first step. Our article on leftover registry entries after uninstalling covers what is safe to check.
  • Do not download single DLL files or unknown repair tools to fix this error.
  • Do not turn off Windows Security or other protection to test a cause.

When to stop and get help

Stop when the error returns after the steps above, when the message names a damaged database, when the scan cannot finish, or when the PC is managed by an organization. If the error appears alongside installer messages, our article on the Windows Installer service may help. If you want a guided path that does not change anything on the PC, the Repair Assistant can help narrow the cause. Bring the note from step 1, the event entries, the app version and any restore point details to the vendor or to your administrator.

If your symptoms also include a general blue screen, read the guide on registry-related blue screens before you run more repairs, because the order of checks matters.

Frequently asked questions

Meaning and causes

Is error 1018 the same as error 0x800703FA?

Yes. Error 1018 is the Win32 name, ERROR_KEY_DELETED, and 0x800703FA is the same failure written as a Windows HRESULT. The Microsoft list we opened shows 1018 and 0x3FA, and we did not find 0x800703FA on that page.

Does a key marked for deletion disappear after a restart?

Usually a restart closes the open handles, and Microsoft says a deleted key is removed once the last handle is closed. If another program opens the key again at sign-in, the error can return, so check the startup steps.

Can I fix this by deleting the key myself?

We do not recommend it. Deleting or recreating a key by hand can break the program that depends on it, and this guide does not teach that step.

Does a registry cleaner fix error 0x800703FA?

No. We found no Microsoft page that shows a registry cleaner repairing this error or improving speed, and cleaners can remove keys that a program needs.

Repair and when to stop

Should I run DISM or System File Checker first?

Run DISM first, then System File Checker. Microsoft's guidance on the System File Checker says DISM should be run before SFC, because DISM supplies the files that SFC uses.

Is it safe to run sfc /scannow?

It replaces damaged protected system files with a cached copy. Create a restore point first, and let the command finish without closing the window.

Why does the error come back after I reinstall the app?

The app may start a process that holds the key open, or a policy or management tool may create the key again. Check the clean boot result and the event entries, and ask the vendor which startup or update step they use.

When should I call a technician?

Call when the error names a damaged database, when the PC is managed by an organization, when the malware scan cannot finish, or when the error returns after the app is updated and system files have been checked.

How this guide was checked

The steps were compared with Microsoft documentation where we could open it, and they were not run on a real PC. We checked the Microsoft system error code list for 1018 and its message text, the RegDeleteKey remarks on the last handle, and the Microsoft Support guidance on running DISM before System File Checker. We could not confirm the Microsoft clean boot page, so the clean boot step relies on our own article. We did not find 0x800703FA on the Microsoft error list, so the HRESULT explanation is our reading and is labelled as such. The places where people meet the error are commonly reported and were not confirmed one by one. No testing, labs or credentials are claimed.

Sources