How to Clean an Infected Computer Laptop
In this article
If your laptop is running slowly, showing pop-ups, or behaving oddly, it may be infected with malware. Cleaning it involves removing the malicious software, repairing any damage, and restoring your system to a healthy state. This guide walks you through the process safely, step by step, without needing advanced technical skills. Before you start, ensure you have a stable internet connection, a second device (like a phone) to look up help if needed, and a backup drive if you want to save personal files.
What You'll Need
- Another device (phone or tablet) to search for help if your laptop becomes unusable.
- An external USB drive or cloud storage for backing up important files (optional but recommended).
- Your laptop's power adapter (keep it plugged in during the process).
- Patience – cleaning can take 1–3 hours depending on the infection.
Step-by-Step
- Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi (click the network icon in the system tray and toggle Wi-Fi off). This prevents malware from communicating with its command server or spreading further.
- Enter Safe Mode. Restart your laptop. For Windows 10/11: hold Shift while clicking Restart, then go to Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 or F4 for Safe Mode. For macOS: shut down, then press and hold the power button until you see “Loading startup options,” then select Safe Mode. Safe Mode loads only essential drivers, which often stops malware from running.
- Back up your important files. In Safe Mode, copy your documents, photos, and other irreplaceable files to an external drive or cloud storage. Use a USB drive and only copy files you trust (scan them later). Avoid copying executable files (.exe) or scripts from your Downloads folder.
- Uninstall suspicious programs. Go to Control Panel > Programs and Features (Windows) or Applications folder (macOS). Look for recently installed programs you don't recognize – especially toolbars, “optimizers,” or “free” apps. Uninstall them. Be careful: only remove programs you are certain are malicious, as some legitimate software may be needed.
- Run a full antivirus scan. Use your built-in protection: Windows Security (Windows) or XProtect (macOS) – but these are basic. Better: download a reputable free scanner like Malwarebytes (Windows and macOS) from its official website using another device, transfer it via USB, then install and run a full scan. Allow it to quarantine any threats it finds.
- Run a second opinion scan. After the first scan, run a second scanner like AdwCleaner (Windows) or a built-in macOS malware removal tool. Different tools catch different threats. Repeat until scans come back clean.
- Update your operating system and software. Reconnect to the internet, then install all pending updates for Windows or macOS. Also update your web browser, Java, Flash (if still installed), and other plugins – many infections exploit outdated software.
- Change your passwords. After cleaning, change passwords for your email, banking, and social media accounts. Use a different device if possible, or do it after the system is verified clean. Enable two-factor authentication where available.
- Restore browser settings. In your browser, reset the homepage, search engine, and remove any suspicious extensions. In Chrome: Settings > Advanced > Reset and clean up. In Firefox: Help > Troubleshooting Information > Refresh Firefox. In Safari: Safari > Settings > Extensions.
- Reconnect and test. Reconnect to the internet and use your laptop normally for a few hours. Watch for pop-ups, redirects, or unusual network activity. If everything seems normal, your laptop is likely clean.
Common Mistakes
- Skipping Safe Mode. Running scans in normal mode can miss malware that hides in background processes. Safe Mode disables most malware, making it easier to remove.
- Backing up infected files. If you copy your entire user folder, you may re-infect your system later. Only copy files you know are safe (documents, photos, videos) – not executables or scripts.
- Using multiple antivirus programs at once. Running two real-time scanners can cause conflicts and false positives. Use one real-time scanner and one on-demand scanner.
- Ignoring browser extensions. Malware often hides as a browser extension that redirects you. Reset your browser settings completely.
- Not changing passwords. Even if you remove the malware, your credentials may have been stolen. Change them immediately.
- Paying for fake “tech support” pop-ups. If a pop-up says your laptop is infected and asks for payment, that's a scam. Close it and proceed with the steps.
Tips
- Keep your laptop plugged in during the cleaning process to avoid shutdowns.
- Use a wired connection when reconnecting to the internet – it's more stable than Wi-Fi.
- Consider a factory reset as a last resort if cleaning fails – but back up your files first.
- After cleaning, install an ad-blocker and disable browser notifications from unknown sites to reduce future infections.
- Schedule regular automatic scans with your security software.
- If you use a Mac, malware is rarer but still possible – follow the same steps, but use Malwarebytes for Mac.
Troubleshooting
If the laptop won't boot into Safe Mode: Try pressing F8 repeatedly during startup (older Windows) or use the recovery drive. For macOS, try resetting NVRAM (restart and hold Option+Command+P+R) then try Safe Mode again.
If scans keep finding the same file: The malware may be reinfecting itself from a hidden location. Try using a bootable rescue disk (like Kaspersky Rescue Disk) on a USB drive – this scans your system before Windows loads.
If your files are encrypted with a ransom note: Do not pay. Disconnect from the internet immediately. Some ransomware has free decryption tools, but you'll need to identify the strain. Use another device to search for the ransom note text.
If you suspect a rootkit: Standard scans may miss it. Use a specialized rootkit scanner like Malwarebytes Anti-Rootkit (Windows) or run a full system restore.
If the laptop still runs slowly after cleaning: The malware may have damaged system files. Run System File Checker (Windows: open Command Prompt as admin and type sfc /scannow) or run First Aid in macOS Disk Utility.
Frequently Asked Questions
Can I clean an infected laptop without antivirus software?
Yes, but it's much harder. You can manually remove suspicious programs and reset your browser, but a full scan with a reputable antivirus is the most reliable method.
How do I know if my laptop is actually infected?
Common signs include: sudden slow performance, frequent pop-ups, browser homepage changes, unknown programs starting up, or high network activity when you're not using it. But some symptoms can be caused by other issues, so run a scan to confirm.
Will I lose my files if I clean the infection?
Usually not, but it's possible if the malware corrupts files or if you need to do a factory reset. Always back up important files before cleaning.
Can I use my phone to clean my laptop?
No, but you can use your phone to download antivirus installers and transfer them to your laptop via USB or cloud storage.
Is it safe to use free antivirus software?
Yes, reputable free versions like Bitdefender, Kaspersky, and Malwarebytes are safe and effective. Avoid unknown or “free” antivirus ads you see in pop-ups – those are often malware themselves.
What should I do if the infection is gone but my laptop is still slow?
Check for other issues like low disk space, too many startup programs, or outdated hardware. Use Task Manager (Ctrl+Shift+Esc) to see what's using resources.