02Home & Garden · Updated
How to Get Rid of Viruses on Your PC
Short answer
Run a full antivirus scan in Safe Mode, then remove detected threats
Most viruses can be removed by booting into Safe Mode, running a full system scan with your antivirus, and deleting anything it flags. If that fails, use a dedicated removal tool or reset your system.
What You’ll Need
- A computer with internet access (to download tools beforehand)
- An up-to-date antivirus program (Windows Defender works, or a third-party like Malwarebytes)
- A USB drive (optional, for offline scanner)
- Patience – scans can take an hour or more
Step-by-Step
- Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops the virus from sending data or downloading more payloads.
- Boot into Safe Mode. Restart your PC and press F8 (or Shift + Restart on Windows 10/11) to access Advanced Startup. Choose Safe Mode with Networking. On Mac, restart and hold the Shift key. Safe Mode loads only essential drivers, preventing many viruses from starting.
- Open your antivirus and run a full scan. In Safe Mode, launch your antivirus. Choose “Full Scan” (not Quick Scan). Let it run – it may take 1–2 hours. The antivirus will list detected threats.
- Quarantine or delete threats. After the scan, review the results. Select all threats and choose “Quarantine” or “Delete.” Quarantine is safer because it isolates files without deleting them permanently, allowing recovery if needed.
- Restart normally and scan again. Reboot your PC normally. Run another full scan to catch anything that survived or re-infected. If the second scan comes back clean, you’re likely virus-free.
- Update your operating system and software. Install all pending updates for Windows/macOS, your browser, and plugins. Updates patch security holes that viruses exploit.
- Change your passwords. If the virus could have captured keystrokes (keylogger), change passwords for email, banking, and social media from a clean device.
Common Mistakes
- Running a quick scan only. Quick scans miss deeply hidden files. Always do a full scan.
- Not using Safe Mode. Many viruses resist removal while Windows is running normally. Safe Mode stops them from interfering.
- Deleting system files. Some threats disguise themselves as system files. Deleting a real system file can break Windows. Always quarantine first, then research the file name if unsure.
- Ignoring browser extensions. Viruses often hide as browser add-ons. After scanning, check your browser extensions and remove any you don’t recognize.
- Reconnecting to the internet too soon. If you reconnect before the second scan, the virus may re-download itself.
Tips
- Use an offline scanner. If your antivirus won’t open or the scan fails, download a free offline scanner (like Microsoft Defender Offline or Kaspersky Rescue Disk) onto a USB drive from a clean computer, then boot from that USB.
- Keep backups. Regularly back up important files to an external drive or cloud. If a virus encrypts your files (ransomware), you can restore them.
- Enable ransomware protection. Windows Security has a “Ransomware Protection” feature that blocks unauthorized changes to your files.
- Use a second opinion scanner. Run Malwarebytes alongside your main antivirus – it catches different threats.
- Stay updated. Turn on automatic updates for your OS and software to prevent future infections.
Troubleshooting
- Antivirus won’t open or crashes. The virus may be blocking it. Boot into Safe Mode again and try. If still failing, use an offline scanner from a USB drive.
- Scan finds nothing but you still see symptoms. Some malware hides from antivirus. Try a dedicated removal tool like AdwCleaner or run a scan with Malwarebytes. Also check browser settings – reset your homepage and search engine.
- Virus returns after reboot. It may be in the Master Boot Record (MBR) or a scheduled task. Use a rescue disk that scans the MBR, and check Task Scheduler for suspicious tasks.
- Safe Mode won’t start. On Windows, use the Settings app: Update & Security > Recovery > Advanced Startup. If that fails, create a Windows installation USB and boot from it to access Repair options.
- Files are encrypted (ransomware). Do not pay the ransom. Try free decryptors from No More Ransom project. Restore from backups if you have them.
- Everything else fails. Back up your personal files (if not encrypted) and reinstall Windows using the “Reset this PC” option or a clean install from USB. This wipes everything and guarantees removal.
Frequently Asked Questions
Can a virus survive a factory reset?
Usually no, but some sophisticated malware can hide in the BIOS or firmware. A full reinstall (not just a reset) from a clean USB drive is safer.
Do I need to pay for antivirus?
No. Windows Defender (built into Windows) and free versions of Malwarebytes are sufficient for most home users. Paid versions offer extra features but aren’t necessary.
How do I know if my Mac has a virus?
Macs are less prone to viruses but can get malware. Symptoms include pop-ups, slow performance, or unexpected browser changes. Use Malwarebytes for Mac to scan.
Can a virus infect my phone?
Yes, especially Android. Stick to official app stores, avoid sideloading, and run a reputable mobile security app if you’re concerned.
How long does a full virus scan take?
It varies – from 30 minutes to several hours depending on your drive size and speed. Let it run overnight if needed.
Is it safe to use my computer while scanning?
It’s best to avoid heavy use, as the scan uses CPU and disk resources, which can slow down both the scan and your work.
Related
- Why Is It Called Ivory Coast? Name Origin
- Why Is It Called Irish Twins? Meaning & Origin
- Why Is It Called Indigenous Peoples Day?
Further reading: Microsoft Support. Details can change, so check the official page for anything that matters to you. Spotted a mistake? Tell us. How we write an answer.