sodcalculator

10 Tech How-To

Remove Malware from Windows PC & Restore Accounts

Guide 10-58692 · Updated · Step by step

This guide walks you through removing malware from a Windows PC and recovering any accounts that may have been compromised. You’ll learn how to disconnect from the internet, run a thorough scan, clean up persistent infections, and then secure and restore your email, banking, and social media accounts. Follow the steps in order for the best chance of a full recovery.

What You’ll Need

  • Another device (phone or second computer) to look up instructions and reset passwords securely.
  • A USB flash drive (optional, for creating a rescue disk if Windows won’t boot).
  • Your account recovery information (phone number, backup email) accessible.
  • Patience – a thorough cleanup can take a few hours.

Step-by-Step

  1. Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops malware from sending your data or downloading more payloads.
  2. Boot into Safe Mode with Networking (if you need internet for scans) or plain Safe Mode. Restart your PC, and as it boots, press F8 (or Shift + Restart from the login screen) to access Advanced Startup Options. Choose Safe Mode with Networking if you need to download tools; otherwise, use Safe Mode. In Safe Mode, only essential programs run, making malware easier to remove.
  3. Open Task Manager and disable suspicious startup programs. Press Ctrl+Shift+Esc, go to the Startup tab, and look for entries with unknown names, random letters, or locations in AppData. Right-click and disable anything you don’t recognize. This prevents malware from relaunching after a reboot.
  4. Run Windows Defender Offline Scan (or Microsoft Safety Scanner). In Windows Security (built-in), go to Virus & threat protection > Scan options > Microsoft Defender Offline scan. This runs before Windows fully loads, catching rootkits and stubborn infections. If you can’t boot, use another PC to create a Windows Defender Offline USB or download the Microsoft Safety Scanner to a flash drive.
  5. Run a second opinion scanner. After the built-in scan, run a reputable on-demand scanner like Malwarebytes AdwCleaner or ESET Online Scanner. These catch adware, browser hijackers, and PUPs that traditional antivirus misses. Download them on a clean device and transfer via USB if needed.
  6. Delete quarantined items. After each scan, review the threats found and click Quarantine or Remove. Do not restore any files unless you are 100% sure they are safe.
  7. Check browser extensions and settings. Open each browser (Chrome, Edge, Firefox) and remove any extensions you didn’t install. Reset the homepage and search engine to default. Look for a proxy setting: In Windows Settings > Network & Internet > Proxy, ensure Use a proxy server is off unless you know you need it.
  8. Update Windows and all software. Once clean, reconnect to the internet and run Windows Update. Update every installed program, especially browsers, Java, and PDF readers, as malware often exploits outdated software.
  9. Change your passwords from a clean device. Use your phone or another computer. Start with your email account (the most critical, since password resets go there), then banking, social media, and any other important accounts. Use strong, unique passwords – at least 12 characters with a mix of letters, numbers, and symbols. Enable two-factor authentication (2FA) on every account that offers it.
  10. Revoke access to suspicious apps and sessions. For each account (Google, Microsoft, Facebook, etc.), go to security settings and sign out of all other devices. Review connected apps and remove any you don’t recognize.
  11. Check for email forwarding rules. In your email settings, look for forwarding rules or filters that send copies of your emails to an unknown address. Delete any you didn’t create. This is a common persistence technique.
  12. Restore affected files from backups. If ransomware encrypted your files, you may need to restore from a backup. Do not pay the ransom. Use File History or a cloud backup if you have one.
  13. Run a final scan. After all changes, run Windows Defender full scan one more time to confirm the system is clean.

Common Mistakes

  • Not disconnecting from the internet first. Malware can continue to communicate with its command server, making removal harder.
  • Only running one scan. Different tools catch different things. Always use both a system scanner and a second opinion scanner.
  • Changing passwords on the infected PC. Keyloggers can capture your new passwords. Always use a clean device.
  • Ignoring browser extensions. Even after a clean scan, a malicious extension can remain. Manually review and remove them.
  • Forgetting about email forwarding rules. Attackers often set these up to keep reading your mail after you change your password.
  • Skipping 2FA. Without it, a stolen password is all an attacker needs.

Tips

  • Back up your important files regularly to an external drive or cloud service. This is your safety net against ransomware.
  • Use a password manager to generate and store strong, unique passwords. This reduces the risk of credential stuffing.
  • Keep your operating system and software updated automatically. Most malware exploits known vulnerabilities.
  • Be cautious with email attachments and links, even from known senders. Verify the sender’s address.
  • If you suspect a breach, act fast. The sooner you disconnect and change passwords, the less damage can be done.

Troubleshooting

Windows won’t boot. Use another PC to create a Windows Defender Offline USB or a rescue disk from your antivirus vendor. Boot from the USB and run a scan. If that fails, you may need to perform a System Restore from the Advanced Startup Options, or in the worst case, reinstall Windows.

Malware keeps coming back after removal. This often indicates a rootkit or a scheduled task that recreates the infection. Run a rootkit scanner (like Malwarebytes Anti-Rootkit) and check Task Scheduler for suspicious tasks. Also check the registry Run keys (HKCU\Software\Microsoft\Windows\CurrentVersion\Run) for unknown entries.

You can’t change your password because the account is locked. Use the account recovery process (e.g., Google’s account recovery, Microsoft’s reset form). Provide as much information as possible. Be patient – it can take a few days.

Your email is sending spam to contacts. Even after cleaning, your email may be blacklisted. Change your password, revoke app passwords, and check for rules. Notify your contacts to ignore the spam. The issue usually resolves within a few days.

Bank account shows unauthorized transactions. Contact your bank immediately to freeze the account and dispute charges. They will issue a new card. Do not wait.

You don’t have a backup for encrypted files. Unfortunately, without a backup, data recovery is rarely possible. Some ransomware decryptors exist for older strains – check No More Ransom project. Do not pay the ransom; it funds crime and doesn’t guarantee recovery.

Frequently Asked Questions

Q: How do I know if my PC is infected?
A: Common signs include sudden slowdowns, unwanted pop-ups, browser homepage changes, new toolbars, unusual network activity, and files being renamed or encrypted. If you see these, run a scan immediately.

Q: Can I remove malware for free?
A: Yes. Windows Defender (built-in) and tools like Malwarebytes AdwCleaner are free for personal use. You don’t need to pay for removal.

Q: Should I pay the ransom if my files are encrypted?
A: No. Paying doesn’t guarantee you’ll get your files back, and it encourages more attacks. Restore from backup if you have one.

Q: How often should I run a malware scan?
A: At least once a week for a full scan. Real-time protection should always be on. Also scan after downloading anything suspicious.

Q: What’s the difference between a virus and malware?
A: Malware is any malicious software (including viruses, worms, trojans, ransomware, spyware). A virus is a specific type that replicates by attaching to other files. All viruses are malware, but not all malware is a virus.

Q: Can a factory reset remove all malware?
A: Usually yes, but not always if the malware is in the firmware (rare) or if you restore from a backup that was also infected. A factory reset wipes the hard drive, so it’s a good last resort.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →