Yes, you can restore quarantined files, but only after verifying they are safe. This article explains exactly how to review, restore, and prevent future infections, whether you use Windows Defender, third-party antivirus, or a browser's built-in protection.
What Quarantine Actually Does
When your antivirus detects a suspicious file, it doesn't delete it immediately. Instead, it moves the file to a secure, isolated folder called quarantine. This action prevents the file from executing while preserving it for later analysis. The antivirus may also encrypt the file or strip its execution permissions, so it cannot harm your system. Quarantine is a middle ground between ignoring a threat and destroying a fileāit gives you time to decide what to do.
Why You Might Need to Restore a File
False positives are the most common reason. A perfectly safe program, a game crack, a keygen, or even a legitimate system file can be flagged because it behaves like malware (e.g., it modifies other executables, reads the registry, or uses unusual compression). You might also have accidentally quarantined a file you need for a project, or your antivirus flagged a file you know came from a trusted source. In those cases, restoring is the only way to get the file back.
How to Restore from Windows Security (Defender)
- Open Windows Security (search for it in the Start menu).
- Go to Virus & threat protection.
- Under Current threats, click Protection history.
- Find the quarantined item in the list. It will be marked as Quarantined.
- Click the drop-down arrow next to it, then click Restore.
- Confirm the action. The file returns to its original location.
If you don't see the file, click Filters and select Quarantined. For files older than a few days, you may need to scroll or use the search bar.
How to Restore from Third-Party Antivirus
Most antivirus programs (Norton, McAfee, Avast, Kaspersky, Malwarebytes) follow a similar pattern:
- Open the antivirus dashboard.
- Look for a section called Quarantine, Vault, or Threats.
- Select the file you want to restore.
- Click Restore or Restore and add exception (the latter prevents the file from being quarantined again).
The exact menu names vary by version.
Before You Restore: Verify the File Is Safe
Restoring a truly malicious file can re-infect your system. Always do these checks:
- Check the file path and name. Is it in a system folder (like C:\Windows\System32) or a program folder? Legitimate system files rarely get flagged, but if they do, they are usually signed by Microsoft.
- Check the file's digital signature. Right-click the file (after restoring), go to Properties > Digital Signatures. If it shows a valid signature from a known company (like Microsoft or the software's publisher), it's likely safe.
- Upload the file to VirusTotal. This free service scans the file with 70+ antivirus engines. If only one or two flag it, it's probably a false positive. If many flag it, do not restore it.
- Consider the source. Did you download it from the official developer's site? Or from a shady torrent site? The latter is a red flag.
What to Do After Restoring
Once you restore a file, run a full system scan to ensure nothing else is infected. If the file was a false positive, add an exclusion in your antivirus so it won't be quarantined again. To do this in Windows Security:
- Go to Virus & threat protection > Manage settings (under Virus & threat protection settings).
- Scroll to Exclusions and click Add or remove exclusions.
- Add the file or folder. Be cautious: exclusions weaken your protection, so only add files you are absolutely sure about.
Common Problems and Solutions
- File is not in quarantine anymore. Some antiviruses automatically delete quarantined items after 30 days. If you need the file, you may have to re-download it.
- Restore fails. This can happen if the original location no longer exists (e.g., you moved a folder) or if the file is still detected as a threat. Try restoring to a different location (some antiviruses allow this) or temporarily disabling real-time protection (not recommended unless you are sure).
- File restores but is immediately re-quarantined. This means the antivirus still considers it a threat. You need to add an exclusion before restoring, or the file is genuinely malicious.
- You accidentally restored a real virus. Immediately disconnect from the internet, run a full scan, and consider using a second opinion scanner like Malwarebytes AdwCleaner.
Frequently Asked Questions
Is it safe to restore a quarantined file?
Only if you have verified it is a false positive. If you are unsure, do not restore it. Instead, upload it to VirusTotal or check the file's signature.
Will restoring a file bring back the virus?
If the file was truly malicious, yes. That's why you must verify before restoring. If you restore a real virus, your system may become infected again.
How long does Windows keep quarantined files?
Windows Security keeps quarantined files for 30 days by default, then automatically deletes them. You can change this in the settings, but it's not recommended.
Can I restore a quarantined file without antivirus?
If you don't have antivirus, there is no quarantine. You would need to recover the file from the Recycle Bin (if it was deleted) or from a backup.
What is the difference between quarantine and delete?
Quarantine isolates the file so it cannot run, but keeps it on disk. Delete removes it permanently. Quarantine is reversible; deletion is not (unless you have a backup).
Why did my antivirus quarantine a file I made myself?
If you wrote a script or program, it might trigger heuristics because it does something unusual, like modifying system files or connecting to the internet. This is a common false positive.